1
0
Fork 0
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:
David Heinemeier Hansson 2006-09-08 19:23:33 +00:00
parent 84bfdafa08
commit d7e4f5f22e

View file

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