diff options
author | rohit <rohit.arondekar@gmail.com> | 2010-04-28 10:38:06 +0530 |
---|---|---|
committer | rohit <rohit.arondekar@gmail.com> | 2010-04-28 10:38:06 +0530 |
commit | 56c48f8136b2008e18c712b8133e83edd08e27b1 (patch) | |
tree | 5e32252c016196155eb77d44ee050d620bc986bd /railties/guides/source | |
parent | c6a83378519a7ee9e16adec0fe25736fd794d971 (diff) | |
download | rails-56c48f8136b2008e18c712b8133e83edd08e27b1.tar.gz rails-56c48f8136b2008e18c712b8133e83edd08e27b1.tar.bz2 rails-56c48f8136b2008e18c712b8133e83edd08e27b1.zip |
Fixed incomplete para
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 ff79d9c0ab..d310489a12 100644 --- a/railties/guides/source/getting_started.textile +++ b/railties/guides/source/getting_started.textile @@ -953,7 +953,7 @@ end You'll see a bit more complexity here than you did in the controller for posts. That's a side-effect of the nesting that you've set up; each request for a comment has to keep track of the post to which the comment is attached, thus the initial find action to the Post model to get the post in question. -In addition, the code takes advantage of some of the methods available for an association. For example, in the +new+ method, it calls +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+. |