diff options
author | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-11-08 05:01:31 -0600 |
---|---|---|
committer | Mike Gunderloy <MikeG1@larkfarm.com> | 2008-11-08 05:01:31 -0600 |
commit | 48e21793bf85263ff934409623f21975f8a8eebf (patch) | |
tree | 1019109618ef342fe9008018d386d31037232c01 /railties/doc | |
parent | 0129f00a8131e547672843cf1471a6c1653b74cb (diff) | |
download | rails-48e21793bf85263ff934409623f21975f8a8eebf.tar.gz rails-48e21793bf85263ff934409623f21975f8a8eebf.tar.bz2 rails-48e21793bf85263ff934409623f21975f8a8eebf.zip |
Fix typo in Getting Started guide (#34)
Diffstat (limited to 'railties/doc')
-rw-r--r-- | railties/doc/guides/source/getting_started_with_rails.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/doc/guides/source/getting_started_with_rails.txt b/railties/doc/guides/source/getting_started_with_rails.txt index f924d0793a..977a151f8e 100644 --- a/railties/doc/guides/source/getting_started_with_rails.txt +++ b/railties/doc/guides/source/getting_started_with_rails.txt @@ -480,7 +480,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 link:../finders.html[Active Record Finders]. -The +respond_to+ block handles both HTML and XML calls to this action. If you borwse 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/view/posts/index.html.erb+: [source, ruby] ------------------------------------------------------- |