Command |
Description |
rails application |
Creates a rails application with directories for the model, view, and controller classes/files |
ruby script/server |
Starts the WEBrick server, which may be accessed at the URL http://localhost:3000 |
ruby script/generate model modelname |
Creates a model ruby script; a model class extends the ActionRecord::Base class |
ruby script generate controller controllername action1, action2… |
Creates a controller ruby script; a controller class extends the ActionController::Base class and defines controller actions |
ruby script generate migration migrationname |
Creates a migration script; a migration class extends the ActionRecord::Migration class and is used to create a database table |