Disable Unwanted Generators In Your Rails Application

Posted by Weston Ganger on June 05, 2015

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

Related External Links:

Posted in Rails and Tagged with rails generators 

Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts