- 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)
- 3.2.8 (1)
- 3.2.13 (0)
- What's this?
Latest events
-
eloyesp posted note Use @output_buffer to set the context.
2 days ago
-
linjunpop posted note A simple usage example
2 days ago
-
suffix posted note :include is also valid option
7 days ago
-
elado posted note Shouldn't it be "Unlike update_column"?
10 days ago
-
concept47 posted note use validates :name, :presence => true instead
28 days ago
-
concept47 posted note be aware that this writes to tmp/cache
about 1 month ago
-
timdorr posted note increment_by_sql for PG
about 1 month ago
-
sagarbommidi posted note Use concat insted of joining collection explicitely
about 1 month ago
-
suzuki posted note Edge case
about 1 month ago
-
suzuki posted note Edge case
about 1 month ago
-
Imported version v3.2.13
2 months 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
1079 notes
310 good notes
777 modules
1107 classes
11720 methods- Show more project details
Latest good notes
- Possible gotcha by szeryf at 25 Mar
- Hash conditions require explicit key and value by zakmandhro at 25 Mar
- Replaced by :on => :create by dvydra at 29 Jan
- HTML5 data- attributes using RESTful approach by tomharrisonjr at 9 Nov
- Reverse version of camelize by avakhov at 20 Oct
- Current Database Name by cracell at 17 Oct
- Passing arguments to block by stevo at 14 Sep
- Available statuses by szeryf at 22 Aug
All good notes - RSS
All notes - RSS
Top contributors of last 30 days
jmcnevin
with 1 received thank
Vidmantas
with 1 received thank
shadowfiend
with 1 received thank
mcmire
with 1 received thank
slawosz
with 1 received thank


