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

Related External Links:

Article Topic:Software Development - Rails

Date:June 05, 2015

Recommended Posts



Send Me A Message

I would love to get in touch and talk about your next project. Feel free to send a message and I will get back to you shortly.

Get Connected