Skip to content

Instantly share code, notes, and snippets.

@mgarriss
Created May 13, 2011 19:58
Show Gist options
  • Save mgarriss/971208 to your computer and use it in GitHub Desktop.
Save mgarriss/971208 to your computer and use it in GitHub Desktop.
+ rails g scaffold Sheep
invoke active_record
create db/migrate/20110513195730_create_sheep.rb
create app/models/sheep.rb
invoke test_unit
create test/unit/sheep_test.rb
create test/fixtures/sheep.yml
route resources :sheep
invoke scaffold_controller
create app/controllers/sheep_controller.rb
invoke erb
create app/views/sheep
create app/views/sheep/index.html.erb
create app/views/sheep/edit.html.erb
create app/views/sheep/show.html.erb
create app/views/sheep/new.html.erb
create app/views/sheep/_form.html.erb
invoke test_unit
create test/functional/sheep_controller_test.rb
invoke helper
create app/helpers/sheep_helper.rb
invoke test_unit
create test/unit/helpers/sheep_helper_test.rb
invoke stylesheets
create public/stylesheets/scaffold.css
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment