#Rails New Year
As the new year is beginning many people are talking about starting new things. I thought I’d start it off with a simple look at the beginning of a new rails app.
When I start a new rails app I like to turn off the helper and asset generators. I don’t want a helper for each controller generated and prefer that they are named by functionality when I do need one. For example, you might have a date helper but not a dates controller. The same goes for assets. Of course none of this matters if you aren’t using rails g. To turn them off I add a file to the initializers config/initializers/generators.rb and put this code in it.
Rails.application.config.generators do |g| g.helper false g.assets false end
What do you do when you start a new rails app?