aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source/getting_started.textile
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2010-07-06 10:10:05 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2010-07-06 10:10:05 -0400
commitffdbe56d996a2992de44c6823263f8fea19c2d61 (patch)
tree41c177a02308c4c9c6313017c5c49f5754766de8 /railties/guides/source/getting_started.textile
parentc1fc59c7ac1726f54d54b2896004997892e15ec9 (diff)
parente5c95b1871da61984b4cd109e39b605c447323dd (diff)
downloadrails-ffdbe56d996a2992de44c6823263f8fea19c2d61.tar.gz
rails-ffdbe56d996a2992de44c6823263f8fea19c2d61.tar.bz2
rails-ffdbe56d996a2992de44c6823263f8fea19c2d61.zip
Merge branch 'master' of github.com:lifo/docrails
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-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 6abb3ed9f4..f547f29087 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -958,7 +958,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 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+.
+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/views/posts/show.html.erb+.
<erb>
<p class="notice"><%= notice %></p>