github github
  • Home
  • Pricing and Signup
  • Training
  • Gist
  • Blog
  • Login

rails / rails

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 6,565
    • 1,107
  • Source
  • Commits
  • Network (1,107)
  • Downloads (73)
  • Wiki (4)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Switch Branches (10)
    • 1-2-stable
    • 2-0-stable
    • 2-1-stable
    • 2-2-stable
    • 2-3-stable
    • 3-0-stable
    • deps_refactor
    • encoding
    • master ✓
    • streaming
  • Switch Tags (73)
    • v3.0.0.beta4
    • v3.0.0.beta.3
    • v3.0.0.beta3
    • v3.0.0.beta.2
    • v3.0.0.beta2
    • v3.0.0.beta1
    • v3.0.0_RC2
    • v3.0.0_RC
    • v3.0.0
    • v2.3.9.pre
    • v2.3.8
    • v2.3.7
    • v2.3.6
    • v2.3.5
    • v2.3.4
    • v2.3.3.1
    • v2.3.3
    • v2.3.2.1
    • v2.3.2
    • v2.3.1
    • v2.3.0
    • v2.2.3
    • v2.2.2
    • v2.2.1
    • v2.2.0
    • v2.1.2
    • v2.1.1
    • v2.1.0_RC1
    • v2.1.0
    • v2.0.5
    • v2.0.4
    • v2.0.3
    • v2.0.2
    • v2.0.1
    • v2.0.0_RC2
    • v2.0.0_RC1
    • v2.0.0_PR
    • v2.0.0
    • v1.2.6
    • v1.2.5
    • v1.2.4
    • v1.2.3
    • v1.2.2
    • v1.2.1
    • v1.2.0_RC2
    • v1.2.0_RC1
    • v1.2.0
    • v1.1.6
    • v1.1.5
    • v1.1.4
    • v1.1.3
    • v1.1.2
    • v1.1.1
    • v1.1.0_RC1
    • v1.1.0
    • v1.0.0
    • v0.14.4
    • v0.14.3
    • v0.14.2
    • v0.14.1
    • v0.13.1
    • v0.13.0
    • v0.12.0
    • v0.11.1
    • v0.11.0
    • v0.10.1
    • v0.10.0
    • v0.9.5
    • v0.9.4.1
    • v0.9.4
    • v0.9.3
    • v0.9.2
    • v0.9.1
  • Branch List
Sending Request…

Ruby on Rails — Read more

  Cancel

http://rubyonrails.org

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Add two integration tests for GeneratedAttribute missing type error. [#5461 state:resolved] 
rohit (author)
Thu Sep 02 03:45:22 -0700 2010
josevalim (committer)
Thu Sep 02 03:59:21 -0700 2010
commit  13d2a081645db8733796
tree    a2b48cb94fabb1c0deb2
parent  d2fc5e2f6575b4111f2f
rails /
name age
history
message
file .gitignore Thu Jul 01 10:44:53 -0700 2010 Bump bundler dependency to 1.0.0.beta.2 or later [jeremy]
file .yardopts Sun Aug 29 15:00:04 -0700 2010 Add .yardopts so YARD can document Rails [lsegal]
file Gemfile Wed Sep 01 17:24:33 -0700 2010 Add ruby-debug19 for mri 1.9 [spastorino]
file RAILS_VERSION Mon Aug 23 19:43:47 -0700 2010 Master is now targeting 3.1.0.beta [dhh]
file README.rdoc Thu Aug 26 06:54:53 -0700 2010 revises a few link texts [fxn]
file Rakefile Sun Aug 29 21:59:53 -0700 2010 Bump version to 3.0.1.pre [jeremy]
directory actionmailer/ Mon Aug 30 11:55:10 -0700 2010 Merge josevalim/deprecations branch. [josevalim]
directory actionpack/ Thu Sep 02 03:54:21 -0700 2010 Ensure routes are loaded only after the initial... [josevalim]
directory activemodel/ Thu Sep 02 03:55:45 -0700 2010 ActiveModel#to_xml fix (renamed parameter). [andreas]
directory activerecord/ Thu Sep 02 02:54:04 -0700 2010 Setup explicit requires for files with exceptio... [strzalek]
directory activeresource/ Thu Sep 02 03:55:45 -0700 2010 ActiveModel#to_xml fix (renamed parameter). [andreas]
directory activesupport/ Thu Sep 02 02:54:04 -0700 2010 Setup explicit requires for files with exceptio... [strzalek]
directory bin/ Sat Jun 19 00:54:42 -0700 2010 add missing shebang to rails bin. LH [#4885 sta... [smtlaissezfaire]
directory ci/ Sun Aug 29 12:19:44 -0700 2010 Make CI install bundler stable since 1.0 is out [spastorino]
file install.rb Mon Jul 26 14:09:10 -0700 2010 Add install script for testing gems locally [dhh]
file load_paths.rb Sat Mar 27 12:06:27 -0700 2010 Bust gem prelude to ensure bundler's in the loa... [jeremy]
file rails.gemspec Sun Aug 29 10:55:21 -0700 2010 Depend on Bundler 1.0 w/ tiny fixes [dhh]
directory railties/ Thu Sep 02 03:59:21 -0700 2010 Add two integration tests for GeneratedAttribut... [rohit]
file release.rb Tue Apr 13 12:26:15 -0700 2010 Simple release script [dhh]
directory tools/ Thu Jun 24 01:08:12 -0700 2010 Support an extra profile printer arg [jeremy]
file version.rb Mon Aug 23 19:44:57 -0700 2010 Master is now targeting 3.1.0.beta [dhh]
README.rdoc
== Welcome to \Rails

\Rails is a web-application framework that includes everything needed to create
database-backed web applications according to the Model-View-Control pattern.

This pattern splits the view (also called the presentation) into "dumb"
templates that are primarily responsible for inserting pre-built data in between
HTML tags. The model contains the "smart" domain objects (such as Account,
Product, Person, Post) that holds all the business logic and knows how to
persist themselves to a database. The controller handles the incoming requests
(such as Save New Account, Update Product, Show Post) by manipulating the model
and directing data to the view.

In \Rails, the model is handled by what's called an object-relational mapping
layer entitled Active Record. This layer allows you to present the data from
database rows as objects and embellish these data objects with business logic
methods. You can read more about Active Record in its
{README}[link:files/activerecord/README_rdoc.html].

The controller and view are handled by the Action Pack, which handles both
layers by its two parts: Action View and Action Controller. These two layers
are bundled in a single package due to their heavy interdependence. This is
unlike the relationship between the Active Record and Action Pack that is much
more separate. Each of these packages can be used independently outside of
\Rails. You can read more about Action Pack in its
{README}[link:files/actionpack/README_rdoc.html].


== Getting Started

1. Install \Rails at the command prompt if you haven't yet:

    gem install rails

2. At the command prompt, create a new \Rails application:

    rails new myapp

   where "myapp" is the application name.

3. Change directory to +myapp+ and start the web server:

    cd myapp; rails server

   Run with <tt>--help</tt> for options.

4. Go to http://localhost:3000/ and you'll see:

    "Welcome aboard: You're riding Ruby on Rails!"

5. Follow the guidelines to start developing your application. You can find the following resources handy:

* The README file created within your application.
* The {Getting Started with Rails}[http://guides.rubyonrails.org/getting_started.html].
* The {Ruby on Rails Tutorial}[http://railstutorial.org/book].
* The {Ruby on Rails guides}[http://guides.rubyonrails.org/getting_started.html].
* The {API documentation}[http://api.rubyonrails.org].


== Contributing

We encourage you to contribute to Ruby on \Rails! Please check out the {Contributing to Rails
guide}[http://edgeguides.rubyonrails.org/contributing_to_rails.html] for guidelines about how
to proceed. {Join us}[http://contributors.rubyonrails.org]!

== License

Ruby on \Rails is released under the MIT license.
Dedicated Server Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
  • Blog
  • Support
  • Training
  • Job Board
  • Shop
  • Contact
  • API
  • Status
  • © 2010 GitHub Inc. All rights reserved.
  • Terms of Service
  • Privacy
  • Security
  • English
  • Deutsch
  • Français
  • 日本語
  • Português (BR)
  • 中文
  • See all available languages

Your current locale selection: English. Choose another?

  • English
  • Afrikaans
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文