scaffold_all_models and has_and_belongs_to_many

Sounds like a question for the Scaffolding Extensions Plugin
author(s).