mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Since to_sing, we need to check for empty string
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
84bfdafa08
commit
d7e4f5f22e
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ module ActionView
|
|||
case method = html_options.delete("method").to_s
|
||||
when /^get$/i # must be case-insentive, but can't use downcase as might be nil
|
||||
html_options["method"] = "get"
|
||||
when /^post$/i, nil
|
||||
when /^post$/i, "", nil
|
||||
html_options["method"] = "post"
|
||||
else
|
||||
html_options["method"] = "post"
|
||||
|
|
Loading…
Reference in a new issue