Skip to content

Instantly share code, notes, and snippets.

@bscofield
Created August 29, 2011 11:29
Show Gist options
  • Save bscofield/1178218 to your computer and use it in GitHub Desktop.
Save bscofield/1178218 to your computer and use it in GitHub Desktop.
$ rails g controller Mysteries index show
create app/controllers/mysteries_controller.rb
route get "mysteries/show"
route get "mysteries/index"
invoke erb
create app/views/mysteries
create app/views/mysteries/index.html.erb
create app/views/mysteries/show.html.erb
invoke test_unit
create test/functional/mysteries_controller_test.rb
invoke assets
create app/assets/javascripts/mysteries.js.coffee
invoke scss
create app/assets/stylesheets/mysteries.css.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment