You can get all of this information on the command line.
rails generate with no generator name will output a list of all available generators and some information about global options.
rails generate GENERATOR --help will list the options that can be passed to the specified generator.
rails generate scaffold Post name:string title:string content:text
rails generate model Post title:string body:text published:boolean
rails generate migration AddFieldToModel field:type
:primary_key, :string, :text, :integer, :float, :decimal, :datetime, :timestamp, :time, :date, :binary, :boolean
rails generate rspec:model widget
will create a new spec file in spec/models/widget_spec.rb
The same generator pattern is available for all specs:
scaffold
model
controller
helper
view
mailer
observer
integration
feature
job
Generating specific views
rails g rspec:view widget index edit new show
create spec/views/widget
create spec/views/widget/index.html.erb_spec.rb
create spec/views/widget/edit.html.erb_spec.rb
create spec/views/widget/new.html.erb_spec.rb
create spec/views/widget/show.html.erb_spec.rb
Super helpful, thank you! Just a note: you've got this in there twice: https://gist.github.com/cdesch/2f8de645cad1d83aa251c0a20b0f7097#adding-a-unique-property-to-a-field