This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Developing a quick reference [Nov. 30, 2011, 6:52 a.m.]


Collablorative work editing, modifying and adding to the beginners quick reference guide:

RAILS QUICK Reference

Note: colon NOT part of command statement.

rails new <name of directory> : Creates the app directory.
rake db:create : Creates the database using the default SQLite.

rake -t :  Shows the commands.
rails s : Start the rails server.
ctrl C :   Stops the rails server.
http://localhost:3000 :  Default webpage indicates that it is working.

rails generate controller home index : Rails generated the home controller in the app directory which is where you mainly will be working in.