Skip to content

Instantly share code, notes, and snippets.

@manters2000
Last active January 21, 2016 06:43
Show Gist options
  • Select an option

  • Save manters2000/1803365be5b99c6ddc62 to your computer and use it in GitHub Desktop.

Select an option

Save manters2000/1803365be5b99c6ddc62 to your computer and use it in GitHub Desktop.
Common Rails Commands
Common Rails Commands
rails new app
rails server
rails generate Scaffold name:string email:string
bundle exec rake db:migrate
rails console
bundle exec rake test
bundle exec guard init
bundle exec guard
rails generate integration_test site_layout # generate integration test like for 'site layout'
rails generate controller Users new
rails generate model User name:string email:string
bundle exec rake db:migrate
bundle exec rake db:rollback # undo db migration
rails console --sandbox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment