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 

Want me to help develop your next project or application?

Contact Us

Specializing in Ruby-on-Rails, Javascript, Multi-Platform Electron Desktop Apps and Hybrid Cordova Mobile Apps.

Recommended Posts