Corrects setting of :method on custom form_for

This commit is contained in:
Malcolm Locke
2010-03-06 10:09:28 +13:00
parent f3a7f0e028
commit 18a9906b1c

View File

@@ -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>