Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
snippet 1.4
create app/controllers/pages_controller.rb
route get "pages/destroy"
route get "pages/create"
route get "pages/new"
route get "pages/index"
invoke erb
create app/views/pages
create app/views/pages/index.html.erb
create app/views/pages/new.html.erb
create app/views/pages/create.html.erb
create app/views/pages/destroy.html.erb
invoke test_unit
create test/functional/pages_controller_test.rb
invoke helper
create app/helpers/pages_helper.rb
invoke test_unit
create test/unit/helpers/pages_helper_test.rb
invoke assets
invoke coffee
create app/assets/javascripts/
invoke scss
create app/assets/stylesheets/pages.css.scss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment