diff options
author | Nathan Lloyd Smith <nlloyds@gmail.com> | 2009-04-03 13:44:09 -0500 |
---|---|---|
committer | Nathan Lloyd Smith <nlloyds@gmail.com> | 2009-04-03 13:44:09 -0500 |
commit | c910c45b9d70d13b4e1e9c81d88dcd935fa4873b (patch) | |
tree | 0f500b9c43ac3d9c1eaf6e492f1f0b10cda3f49c /railties/guides/source | |
parent | 9488d583eea3b1301761afc5229c6d2e8caffd0d (diff) | |
download | rails-c910c45b9d70d13b4e1e9c81d88dcd935fa4873b.tar.gz rails-c910c45b9d70d13b4e1e9c81d88dcd935fa4873b.tar.bz2 rails-c910c45b9d70d13b4e1e9c81d88dcd935fa4873b.zip |
Typo fix
Diffstat (limited to 'railties/guides/source')
-rw-r--r-- | railties/guides/source/getting_started.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile index f0a43c09b7..a216201490 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -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> |