This is a visualization of the files that will be generated by some useful rails generators. Invoke a generator from command line via rails generate GENERATOR [args] [options]
. List all generators (including rails generators) with rails g -h
.
generator | model | migration | controller | entry in routes.rb
|
views | tests |
---|---|---|---|---|---|---|
scaffold | ✔ | ✔ | ✔ | ✔ | ✔ | ✔ |
resource | ✔ | ✔ | ✔ | ✔ | ✔ | |
model | ✔ | ✔ | ✔ | |||
controller | ✔ | ✔ | ✔ | |||
migration | ✔ |
Also see this blog post Show archive.org snapshot .
Posted by Daniel Straßner to makandra dev (2017-03-30 13:21)