我想定义以下内容:
config.generators.stylesheets = false
config.generators.javascripts = false
config.generators.helper = false
但是尽管阅读了Ror's guide on the subject,但我还是得不到应该采用的方法。
答案 0 :(得分:1)
我认为它属于config/application.rb
:
module MyApp
class Application < Rails::Application
# Lots of stuff
# Generator configuration
config.generators do |g|
g.orm :active_record
g.template_engine :erb
g.test_framework :test_unit, fixture: false
g.stylesheets false
g.helper false
end
end
end