This is what the internal sounder generator calls inside:
rails g erb:scaffold User
erb is the template engine used, so you can also use haml:scaffold .
You must explicitly specify the fields that you want to use to use the forests: rails does not automatically derive them from the created model. For example:
rails g erb:scaffold User firstname lastname reputation
See rails g --help for options such as skipping, forcing, and dry runs, or generate scaffold --help for information specific to scaffolding.
Rick Smith Oct. 06 '15 at 0:03 2015-10-06 00:03
source share