Skip to content

Instantly share code, notes, and snippets.

@adamtait
Created July 30, 2011 23:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamtait/1116122 to your computer and use it in GitHub Desktop.
Save adamtait/1116122 to your computer and use it in GitHub Desktop.
Rails is smart! Knows plurals in english
~/workspace/rails/happenedtome: ruby script/generate scaffold story title:text body:text
exists app/models/
exists app/controllers/
exists app/helpers/
create app/views/stories
exists app/views/layouts/
exists test/functional/
exists test/unit/
create test/unit/helpers/
exists public/stylesheets/
create app/views/stories/index.html.erb
create app/views/stories/show.html.erb
create app/views/stories/new.html.erb
create app/views/stories/edit.html.erb
create app/views/layouts/stories.html.erb
create public/stylesheets/scaffold.css
create app/controllers/stories_controller.rb
create test/functional/stories_controller_test.rb
create app/helpers/stories_helper.rb
create test/unit/helpers/stories_helper_test.rb
route map.resources :stories
dependency model
exists app/models/
exists test/unit/
exists test/fixtures/
create app/models/story.rb
create test/unit/story_test.rb
create test/fixtures/stories.yml
create db/migrate
create db/migrate/20110730230215_create_stories.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment