Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 68 lines (44 sloc) 2.579 kB
b70062f @josevalim Rework a bit README files.
josevalim authored
1 == Welcome to Rails
2
3 Rails is a web-application framework that includes everything needed to create
4 database-backed web applications according to the Model-View-Control pattern.
5
6 This pattern splits the view (also called the presentation) into "dumb"
7 templates that are primarily responsible for inserting pre-built data in between
8 HTML tags. The model contains the "smart" domain objects (such as Account,
9 Product, Person, Post) that holds all the business logic and knows how to
10 persist themselves to a database. The controller handles the incoming requests
11 (such as Save New Account, Update Product, Show Post) by manipulating the model
12 and directing data to the view.
13
14 In Rails, the model is handled by what's called an object-relational mapping
15 layer entitled Active Record. This layer allows you to present the data from
16 database rows as objects and embellish these data objects with business logic
17 methods. You can read more about Active Record in
18 link:files/vendor/rails/activerecord/README.html.
19
20 The controller and view are handled by the Action Pack, which handles both
21 layers by its two parts: Action View and Action Controller. These two layers
22 are bundled in a single package due to their heavy interdependence. This is
23 unlike the relationship between the Active Record and Action Pack that is much
24 more separate. Each of these packages can be used independently outside of
25 Rails. You can read more about Action Pack in
26 link:files/vendor/rails/actionpack/README.html.
27
28
29 == Getting Started
30
31 1. Install Rails at the command prompt if you haven't yet:
d3819da @fxn README.rdoc is your first impression, make sure it is clean
fxn authored
32
f7f5299 @fxn use the same amount of left indent in all code blocks of README.rdoc
fxn authored
33 gem install rails
b70062f @josevalim Rework a bit README files.
josevalim authored
34
35 2. At the command prompt, create a new Rails application:
36
d3819da @fxn README.rdoc is your first impression, make sure it is clean
fxn authored
37 rails new myapp
38
39 where "myapp" is the application name.
40
41 3. Change directory to +myapp+ and start the web server:
42
43 cd myapp; rails server
44
45 Run with <tt>--help</tt> for options.
b70062f @josevalim Rework a bit README files.
josevalim authored
46
47 4. Go to http://localhost:3000/ and you'll see:
d3819da @fxn README.rdoc is your first impression, make sure it is clean
fxn authored
48
f7f5299 @fxn use the same amount of left indent in all code blocks of README.rdoc
fxn authored
49 "Welcome aboard: You're riding Ruby on Rails!"
b70062f @josevalim Rework a bit README files.
josevalim authored
50
51 5. Follow the guidelines to start developing your application. You can find
52 the following resources handy:
53
d3819da @fxn README.rdoc is your first impression, make sure it is clean
fxn authored
54 * The README file created within your application.
55 * The {Getting Started Guide}[http://guides.rubyonrails.org/getting_started.html].
56 * The {Ruby on Rails Tutorial Book}[http://railstutorial.org/book].
b70062f @josevalim Rework a bit README files.
josevalim authored
57
58
59 == Contributing
60
1d1f810 @fxn fixes typo
fxn authored
61 We encourage you to contribute to Ruby on Rails! Please check out the {Contributing to Rails
d3819da @fxn README.rdoc is your first impression, make sure it is clean
fxn authored
62 guide}[http://edgeguides.rubyonrails.org/contributing_to_rails.html] for guidelines about how
63 to proceed. {Join us}[http://contributors.rubyonrails.org]!
b70062f @josevalim Rework a bit README files.
josevalim authored
64
65 == License
66
67 Ruby on Rails is released under the MIT license.
Something went wrong with that request. Please try again.