diff options
author | Malcolm Locke <malc@wholemeal.co.nz> | 2010-03-06 10:09:28 +1300 |
---|---|---|
committer | Malcolm Locke <malc@wholemeal.co.nz> | 2010-03-06 10:09:28 +1300 |
commit | 18a9906b1ca3928d7a7d09304d5d457d024c6a02 (patch) | |
tree | 78277937c2c8cf3dcf1340bec59aea161ac47a40 /railties/guides/source | |
parent | f3a7f0e028c72ed5e38e3eed9369d339addd3c19 (diff) | |
download | rails-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.textile | 2 |
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> |