Created
July 8, 2010 18:46
-
-
Save fortuity/468417 to your computer and use it in GitHub Desktop.
Options for "rails generate scaffold"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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