mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Corrects setting of :method on custom form_for
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user