Here are the steps to create a Rails application called sample, say in a projects folder:
$cd ~/project$rails sample- Update the database info in
~/project/sample/config/database.yml - Create the database
- Create the controller:
$./script/generate controller sample list view new edit - Create the model:
$ ./script/generate model Model - Create the view
- Start the server and visit the application, e.g.
http://sample.yourdomain.com/sample/view
Advertisement