Configuring generators

suggest change

config.generators chooses which generators rails generate uses. It takes a block:

config.generators do |g|
  g.orm :active_record
  g.test_framework :test_unit
end

Some of the options:

Option Description Default
assets Create assets when generating a scaffold true
force_plural Allow pluralized model names false
helper Generate helpers true
integration_tool Integration-test tool :test_unit
javascript_engine JavaScript engine :js
resource_route Generate a resource route true
stylesheet_engine Stylesheet engine :css
scaffold_stylesheet Create CSS when scaffolding true
test_framework Test framework. :test_unit uses Minitest :test_unit
template_engine Template engine :erb

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents