aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-11-28 14:10:23 +0530
committerArun Agrawal <arunagw@gmail.com>2011-11-28 14:10:23 +0530
commite7dff9c1f1e3e8a73c1b5bc5fd4263126813489c (patch)
tree448fd3f679860080c2ceffd1d93a130ca67d6d3b
parent2f428a6245a18017c7942f8fef3da4a85bec8cc5 (diff)
downloadrails-e7dff9c1f1e3e8a73c1b5bc5fd4263126813489c.tar.gz
rails-e7dff9c1f1e3e8a73c1b5bc5fd4263126813489c.tar.bz2
rails-e7dff9c1f1e3e8a73c1b5bc5fd4263126813489c.zip
Revert "fixed typo in getting started form_for for comments"
This reverts commit 2f428a6245a18017c7942f8fef3da4a85bec8cc5. See comments here 2f428a6245a18017c7942f8fef3da4a85bec8cc5
-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 3ff6603a4c..fe43c9db36 100644
--- a/railties/guides/source/getting_started.textile
+++ b/railties/guides/source/getting_started.textile
@@ -1297,7 +1297,7 @@ So first, we'll wire up the Post show template
</p>
<h2>Add a comment:</h2>
-<%= form_for([@post, @post.comment.build]) do |f| %>
+<%= form_for([@post, @post.comments.build]) do |f| %>
<div class="field">
<%= f.label :commenter %><br />
<%= f.text_field :commenter %>