Disable Unwanted Generators In Your Rails Application

Posted by Weston Ganger

Lots of times I dont need a seperate stylesheet, javascript file, or helpers when generating or scaffolding


# config/application.rb

config.generators do |generate|
  generate.helper false

  generators.test_framework = false
  
  generators.assets = false
  # OR
  generators.stylesheets = false
  generators.javascripts = false
end


Related External Links:

Article Topic:Software Development - Rails

Date:June 05, 2015

Recommended Posts