Sometimes I run a command like rails g controller foo index to generate skeletons for controller and template.
rails g controller foo index
Because I don\'t want to have helpers and
As of Rails 4.2, it's possible to disable route generation with the following code in your application.rb:
config.generators do |g| g.skip_routes true end
Source: https://github.com/rails/rails/commit/4b173b8ed90cb409c1cdfb922914b41b5e212cb6