Steps in building a Rails application

Here are the steps to create a Rails application called sample, say in a projects folder:

  1. $cd ~/project
  2. $rails sample
  3. Update the database info in
    ~/project/sample/config/database.yml
  4. Create the database
  5. Create the controller:
    $./script/generate controller sample list view new edit
  6. Create the model:
    $ ./script/generate model Model
  7. Create the view
  8. Start the server and visit the application, e.g.
    http://sample.yourdomain.com/sample/view
Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

Please log in to WordPress.com to post a comment to your blog.

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.