Sometimes I run a command like rails g controller foo index
to generate skeletons for controller and template.
Because I don't want to have helpers and assets for every controller, I put following codes into config/application.rb
:
config.generators do |g| g.helper false g.assets false end
There is another thing I don't want to happen. The generator adds a line get "foo/index"
to my config/routes.rb
. How can I prevent it?