Encountered a situation today where I had to create a bunch of controllers to provide admin controls for models that formerly weren't accessible in a CRUD way. I wanted to use scaffolding for the controller as it would save me a whole lot of time and ensure consistency, but didn't want ANYTHING else — just the stubbed out controller.
The way that scaffold works is that it basically invokes a bunch of other generators. One of those generators is scaffold_controller which creates creates the controller file then subsequently invokes the template engine, test framework, and helper generators which create all the gubbins that I didn't want. If you run
rails g scaffold_controller -h
rails g scaffold_controller admin/agency --no-template-engine --no-test-framework --no-helper create app/controllers/admin/agencies_controller.rb