Skip to content

Instantly share code, notes, and snippets.

@bscofield
Created February 10, 2010 02:15
Show Gist options
  • Select an option

  • Save bscofield/299941 to your computer and use it in GitHub Desktop.

Select an option

Save bscofield/299941 to your computer and use it in GitHub Desktop.
[rails2] > ./script/generate controller People index show
exists app/controllers/
exists app/helpers/
create app/views/people
exists test/functional/
exists test/unit/helpers/
create app/controllers/people_controller.rb
create test/functional/people_controller_test.rb
create app/helpers/people_helper.rb
create test/unit/helpers/people_helper_test.rb
create app/views/people/index.html.erb
create app/views/people/show.html.erb
[rails3] > rails generate controller People index show
create app/controllers/people_controller.rb
invoke erb
create app/views/people
create app/views/people/index.html.erb
create app/views/people/show.html.erb
invoke test_unit
create test/functional/people_controller_test.rb
invoke helper
create app/helpers/people_helper.rb
invoke test_unit
create test/unit/helpers/people_helper_test.rb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment