diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-04-04 17:33:36 +0100 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-04-05 12:36:36 +0100 |
commit | 632bbbfe1cc49ab92c6de858865ffcdcfa67635f (patch) | |
tree | fa6a13ae99b4abd1e8328b99c5fa370c65c879d2 /railties/guides/source/getting_started.textile | |
parent | 1ab7c37671d7c0cd9d8698bd462916a7e6f95470 (diff) | |
download | rails-632bbbfe1cc49ab92c6de858865ffcdcfa67635f.tar.gz rails-632bbbfe1cc49ab92c6de858865ffcdcfa67635f.tar.bz2 rails-632bbbfe1cc49ab92c6de858865ffcdcfa67635f.zip |
Merge docrails
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-rw-r--r-- | railties/guides/source/getting_started.textile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index 97f141b5e9..a216201490 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -312,7 +312,7 @@ Now if you navigate to +http://localhost:3000+ in your browser, you'll see the + NOTE. For more information about routing, refer to "Rails Routing from the Outside In":routing.html. -h3. Getting Up and Running Quickly With Scaffolding +h3. Getting Up and Running Quickly with Scaffolding Rails _scaffolding_ is a quick way to generate some of the major pieces of an application. If you want to create the models, views, and controllers for a new resource in a single operation, scaffolding is the tool for the job. @@ -474,7 +474,7 @@ This code sets the +@posts+ instance variable to an array of all posts in the da TIP: For more information on finding records with Active Record, see "Active Record Query Interface":active_record_querying.html. -The +respond_to+ block handles both HTML and XML calls to this action. If you browse to +http://localhost:3000/posts.xml+, you'll see all of the posts in XML format. The HTML format looks for a view in +app/views/posts/+ with a name that corresponds to the action name. Rails makes all of the instance variables from the action available to the view. Here's +app/view/posts/index.html.erb+: +The +respond_to+ block handles both HTML and XML calls to this action. If you browse to +http://localhost:3000/posts.xml+, you'll see all of the posts in XML format. The HTML format looks for a view in +app/views/posts/+ with a name that corresponds to the action name. Rails makes all of the instance variables from the action available to the view. Here's +app/views/posts/index.html.erb+: <erb> <h1>Listing posts</h1> |