Ruby on Rails Command Line Flashcards
Name the rails command that creates a new application
rails new Name_of_Application
List all items in the rakefile.
rake -T
How to find out what version of Ruby you are using?
ruby -v
How to find out what gems version you are using?
gems -v
See a list of what gemsets you have installed.
rvm gemset list
How do you make a new directory from the command line?
mkdir directory_name
Undo a Rails generate controller
rails destroy controller
rails new -h
To see all of the command line options that the Rails application builder accepts.
bundle
Compiles and updates all gems in the gemfile
rake routesCONTROLLER=products
would only lists the routes related to ProductsController.
How to work in production environment console.
RAILS_ENV=production rails console