Skip to content

Instantly share code, notes, and snippets.

@fortuity
Created July 8, 2010 18:46
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fortuity/468417 to your computer and use it in GitHub Desktop.
Save fortuity/468417 to your computer and use it in GitHub Desktop.
Options for "rails generate scaffold"
$ rails generate scaffold BusinessEntry content:string --no-stylesheets --no-fixture --no-test-framework --no-helper --pretend
invoke mongoid
create app/models/business_entry.rb
route resources :business_entries
invoke scaffold_controller
create app/controllers/business_entries_controller.rb
invoke haml
create app/views/business_entries
create app/views/business_entries/index.html.haml
create app/views/business_entries/edit.html.haml
create app/views/business_entries/show.html.haml
create app/views/business_entries/new.html.haml
create app/views/business_entries/_form.html.haml
$ rails generate controller ClientsNotes --no-stylesheets --no-fixture --no-test-framework --no-helper --no-views --pretend
create app/controllers/clients_notes_controller.rb
invoke haml
create app/views/clients_notes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment