Skip to content

Instantly share code, notes, and snippets.

@hmans
Last active October 11, 2016 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hmans/33e81a1a97c196f376e81dcd8bda87e3 to your computer and use it in GitHub Desktop.
Save hmans/33e81a1a97c196f376e81dcd8bda87e3 to your computer and use it in GitHub Desktop.
Disable some Rails generators you don't need to run all the time

Disable some Rails generators you don't need to run all the time

Reasoning: the Rails default is to generate a separate .coffee (or .js) and .scss file for each controller you add to your application. This may not be what you need. Adding the following lines to your development environment's configuration file will prevent this from happening:

# In config/environments/development.rb
config.generators.stylesheets = false
config.generators.javascripts = false
config.generators.helper      = false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment