Skip to content

Instantly share code, notes, and snippets.

@jcieslar
Created September 15, 2015 13:50
Show Gist options
  • Save jcieslar/14b7a27a4b05b24b43dd to your computer and use it in GitHub Desktop.
Save jcieslar/14b7a27a4b05b24b43dd to your computer and use it in GitHub Desktop.
Rails cheatsheet
gem install bundler # install bundler for bundle command

rails s # run rails server
rails c # run rails console - access to database tables

bundle # install gems dependencies

rake db:setup # run db:create, db:schema:load, db:seed
rake db:create # create database
rake db:drop # remove databse
rake db:seed # loads sample data to database
rake db:migrate # run missing database changes
rake routes # show rails endpoints
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment