Ruby on Rails



Welcome to the Ruby on Rails book.

If you are interested in learning more about the Ruby language, then please go to the Ruby Programming book.

Ruby on Rails, or often seen as RoR is a contemporary web framework used by many web companies such as Twitter, Hulu and Kongregate. It allows developers to easily create and maintain applications with very little effort but huge functionality.

Important Note
Rails command start with "rails" and not "ruby/script".

Preface

 * /Introduction/
 * /Contributors/

Installation

 * Install on Windows
 * Install on OS X
 * Install on Linux

Concepts

 * Don't repeat yourself
 * Model-View-Controller
 * Convention over Configuration

First Application

 * Creating the application
 * Running the Server

Generators

 * Generators
 * Make a generator

Rake

 * What is Rake anyway?
 * Convenient Rake tasks
 * Make your own rake tasks
 * Command-Line Reference

ActiveRecord - The Model

 * Naming
 * Migrations
 * Associations
 * Callbacks
 * Validations
 * Attributes
 * Aggregations
 * Calculations
 * acts_as

ActionView - The View

 * Rendering and Redirecting
 * Layout Files
 * Forms
 * Uploads
 * Custom Helpers

ActionController - The Controller

 * Actions
 * Parameters
 * Sessions
 * Cookies

Routing

 * Routing

ActiveSupport

 * ActiveSupport

ActionMailer

 * ActionMailer

Examples

 * Examples
 * Generating valid HTML4.01

Other Resources

 * Other Resources

Ruby on Rails Ruby on Rails Ruby on Rails