#rails new year
Brad Pauly — January 2, 2013

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

What do you do when you start a new rails app?

I'm always looking for new topics to write about. Stuck on a problem or working on something interesting? You can reach me on Twitter @bradpauly or send me an email.