Rails allows you to configure what generators are used when running rails generate commands. This method, config.generators takes a block
config.generators do |g|
g.orm :active_record
g.test_framework :test_unit
end
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 |