- 1.0.0 (0)
- 1.1.0 (3)
- 1.1.1 (0)
- 1.1.6 (1)
- 1.2.0 (14)
- 1.2.6 (2)
- 2.0.0 (16)
- 2.0.1 (0)
- 2.0.3 (3)
- 2.1.0 (38)
- 2.2.1 (14)
- 2.3.2 (13)
- 2.3.8 (-2)
- 3.0.0 (-1)
- 3.0.5 (3)
- 3.0.7 (0)
- 3.0.9 (20)
- 3.1.0 (11)
- 3.2.1 (0)
- 3.2.3 (0)
- What's this?
Latest events
-
stevo posted note STI - Making callbacks trigger in inherited classes
1 day ago
-
Imported version v3.2.3
6 days ago
-
Git repository cloned from git://github.com/rails/rails.git
6 days ago
-
azhao posted note block only and except
7 days ago
-
cantbecool posted note Hidden Field Example
10 days ago
-
roryokane posted note method to use instead
16 days ago
-
wiseleyb posted note Example from Code School
20 days ago
-
julescopeland posted note MUCH easier way to pluralize without the number...
20 days ago
-
tomharrisonjr posted note HTML5 data- attributes using RESTful approach
21 days ago
-
neosoyn posted note I got it
24 days ago
-
lukaszsliwa posted note Locale
28 days ago
Project README
Welcome to Rails
Rails is a web-application framework that includes everything needed to create database-backed web applications according to the Model-View-Controller (MVC) pattern.
Understanding the MVC pattern is key to understanding Rails. MVC divides your application into three layers, each with a specific responsibility.
The View layer is composed of “templates” that are responsible for providing appropriate representations of your application’s resources. Templates can come in a variety of formats, but most view templates are HTML with embedded Ruby code (.erb files).
The Model layer represents your domain model (such as Account, Product, Person, Post) and encapsulates the business logic that is specific to your application. In Rails, database-backed model classes are derived from ActiveRecord::Base. Active Record allows you to present the data from database rows as objects and embellish these data objects with business logic methods. Although most Rails models are backed by a database, models can also be ordinary Ruby classes, or Ruby classes that implement a set of interfaces as provided by the ActiveModel module. You can read more about Active Record in its README.
The Controller layer is responsible for handling incoming HTTP requests and providing a suitable response. Usually this means returning HTML, but Rails controllers can also generate XML, JSON, PDFs, mobile-specific views, and more. Controllers manipulate models and render view templates in order to generate the appropriate HTTP response.
In Rails, the Controller and View layers are handled together by Action Pack. These two layers are bundled in a single package due to their heavy interdependence. This is unlike the relationship between Active Record and Action Pack which are independent. Each of these packages can be used independently outside of Rails. You can read more about Action Pack in its README.
Getting Started
-
Install Rails at the command prompt if you haven’t yet:
gem install rails
-
At the command prompt, create a new Rails application:
rails new myapp
where “myapp” is the application name.
-
Change directory to myapp and start the web server:
cd myapp; rails server
Run with --help for options.
-
Go to http://localhost:3000 and you’ll see:
"Welcome aboard: You're riding Ruby on Rails!"
-
Follow the guidelines to start developing your application. You may find the following resources handy:
-
The README file created within your application.
-
The Ruby on Rails Guides.
-
The API Documentation.
Contributing
We encourage you to contribute to Ruby on Rails! Please check out the Contributing to Rails guide for guidelines about how to proceed. Join us
Build Status 
Dependency Status 
License
Ruby on Rails is released under the MIT license.
Project details
989 notes
293 good notes
777 modules
1103 classes
11650 methods- Show more project details
Latest good notes
- case-insensitive uniqueness by zubin at 1 Apr
- Using namespaces by javiervidal at 16 Feb
- uniqueness by bradcantin at 27 Dec
- finding without default scopes in rails 3 by dennyabraham at 26 Dec
- Doesn't return nil if the object you try from isn't nil. by nhance at 19 Dec
- When scripts don't end in .js by zubin at 12 Dec
- In Rails3 use "unscoped" instead by fpauser at 9 Dec
- Have the check_box checked by default by bquorning at 20 Nov
All good notes - RSS
All notes - RSS
Top contributors of last 30 days
zoopzoop
with 2 received thanks
steven_chanin
with 1 received thank
rob-twf
with 1 received thank
tadman
with 1 received thank
eric_programmer
with 1 received thank


