Ruby on Rails - configuring generators in ruby on rails - ruby on rails tutorial - rails guides - rails tutorial - ruby rails
Configuring generators
Rails allows you to configure what generators are used when running rails generate commands. This method, config.generators takes a block
Here are some of the options
Option | Description | Default |
assets | Creates assets when generating scaffold | true |
force_plural | Allows pluralized model names | false |
helper | Determines whether to generate helpers | true |
integration_tool | Specify integration tool | test_unit |
javascript_engine | Configures JS engine | :js |
resource_route | Generates resource route | true |
stylesheet_engine | Configures stylesheet engine | :cs |
scaffold_stylesheet | Creates CSS upon scaffolding | true |
test_framework | Specify Test Framework | Minitest |
template_engine | Configures template engine | :erb |