aboutsummaryrefslogtreecommitdiffstats
path: root/railties/guides/source
diff options
context:
space:
mode:
authorMalcolm Locke <malc@wholemeal.co.nz>2010-03-06 10:09:28 +1300
committerMalcolm Locke <malc@wholemeal.co.nz>2010-03-06 10:09:28 +1300
commit18a9906b1ca3928d7a7d09304d5d457d024c6a02 (patch)
tree78277937c2c8cf3dcf1340bec59aea161ac47a40 /railties/guides/source
parentf3a7f0e028c72ed5e38e3eed9369d339addd3c19 (diff)
downloadrails-18a9906b1ca3928d7a7d09304d5d457d024c6a02.tar.gz
rails-18a9906b1ca3928d7a7d09304d5d457d024c6a02.tar.bz2
rails-18a9906b1ca3928d7a7d09304d5d457d024c6a02.zip
Corrects setting of :method on custom form_for
Diffstat (limited to 'railties/guides/source')
-rw-r--r--railties/guides/source/form_helpers.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/form_helpers.textile b/railties/guides/source/form_helpers.textile
index 0a76a0f06f..d33bb4b4ff 100644
--- a/railties/guides/source/form_helpers.textile
+++ b/railties/guides/source/form_helpers.textile
@@ -293,7 +293,7 @@ form_for(@article)
## Editing an existing article
# long-style:
-form_for(:article, @article, :url => article_path(@article), :method => "put")
+form_for(:article, @article, :url => article_path(@article), :html => { :method => "put" })
# short-style:
form_for(@article)
</ruby>