aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorrohit <rohit.arondekar@gmail.com>2010-04-28 10:43:36 +0530
committerrohit <rohit.arondekar@gmail.com>2010-04-28 10:43:36 +0530
commit9dea2f4d8edf3cc592c91e1037b1542f770eff0c (patch)
tree16da7fb121e8b2a459ee7a9595ef7abab5ced48e /railties
parent56c48f8136b2008e18c712b8133e83edd08e27b1 (diff)
downloadrails-9dea2f4d8edf3cc592c91e1037b1542f770eff0c.tar.gz
rails-9dea2f4d8edf3cc592c91e1037b1542f770eff0c.tar.bz2
rails-9dea2f4d8edf3cc592c91e1037b1542f770eff0c.zip
fixed para for better readability
Diffstat (limited to 'railties')
-rw-r--r--railties/guides/source/getting_started.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/getting_started.textile b/railties/guides/source/getting_started.textile
index d310489a12..f5be0b34c4 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -955,7 +955,7 @@ You'll see a bit more complexity here than you did in the controller for posts.
In addition, the code takes advantage of some of the methods available for an association. We use the +create+ method on +@post.comments+ to create and save the comment. This will automatically link the comment so that it belongs to that particular post.
-Once we have made the new comment, we send the user back to the +post_path(@post)+ URL. This runs the +show+ action of the +PostsController+ which then renders the +show.html.erb+ template where we want the comment to show, so then, we'll add that to the +app/view/posts/show.html.erb+.
+Once we have made the new comment, we send the user back to the original post using the +post_path(@post)+ helper. As we have already seen, this calls the +show+ action of the +PostsController+ which in turn renders the +show.html.erb+ template. This is where we want the comment to show, so let's add that to the +app/view/posts/show.html.erb+.
<erb>
<p class="notice"><%= notice %></p>