mirror of https://github.com/rails/rails
Merge pull request #24021 from y-yagi/add_scaffold_stylesheet_to_guide
add `scaffold_stylesheet` method to guide [ci skip]
This commit is contained in:
commit
8e9a1a62d3
|
@ -191,6 +191,7 @@ The full set of methods that can be used in this block are as follows:
|
||||||
* `scaffold_controller` different from `resource_controller`, defines which generator to use for generating a _scaffolded_ controller when using `rails generate scaffold`. Defaults to `:scaffold_controller`.
|
* `scaffold_controller` different from `resource_controller`, defines which generator to use for generating a _scaffolded_ controller when using `rails generate scaffold`. Defaults to `:scaffold_controller`.
|
||||||
* `stylesheets` turns on the hook for stylesheets in generators. Used in Rails for when the `scaffold` generator is run, but this hook can be used in other generates as well. Defaults to `true`.
|
* `stylesheets` turns on the hook for stylesheets in generators. Used in Rails for when the `scaffold` generator is run, but this hook can be used in other generates as well. Defaults to `true`.
|
||||||
* `stylesheet_engine` configures the stylesheet engine (for eg. sass) to be used when generating assets. Defaults to `:css`.
|
* `stylesheet_engine` configures the stylesheet engine (for eg. sass) to be used when generating assets. Defaults to `:css`.
|
||||||
|
* `scaffold_stylesheet` creates `scaffold.css` when generating a scaffolded resource. Defaults to `true`.
|
||||||
* `test_framework` defines which test framework to use. Defaults to `false` and will use Minitest by default.
|
* `test_framework` defines which test framework to use. Defaults to `false` and will use Minitest by default.
|
||||||
* `template_engine` defines which template engine to use, such as ERB or Haml. Defaults to `:erb`.
|
* `template_engine` defines which template engine to use, such as ERB or Haml. Defaults to `:erb`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue