diff options
author | Xavier Noria <fxn@hashref.com> | 2010-07-07 12:58:46 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-07-07 12:58:46 +0200 |
commit | 64c75d6618b6bc21576e95ceb31467d1984ecb33 (patch) | |
tree | 5060a400487473e0abe9baecb9fe7bfa16355083 /railties/guides/source/getting_started.textile | |
parent | 8735d15e61797d0e6879efbde4f1ca18b4403eff (diff) | |
parent | 0f96cea322294f84df34c43000443b249a880126 (diff) | |
download | rails-64c75d6618b6bc21576e95ceb31467d1984ecb33.tar.gz rails-64c75d6618b6bc21576e95ceb31467d1984ecb33.tar.bz2 rails-64c75d6618b6bc21576e95ceb31467d1984ecb33.zip |
Merge remote branch 'docrails/master'
Diffstat (limited to 'railties/guides/source/getting_started.textile')
-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 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> |