diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-08 19:23:33 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-09-08 19:23:33 +0000 |
commit | d7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa (patch) | |
tree | bb1886826ebfc5b0e1b7cd36be73d11a265da9bb /actionpack | |
parent | 84bfdafa085daa11aa63491a7856638e05730727 (diff) | |
download | rails-d7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa.tar.gz rails-d7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa.tar.bz2 rails-d7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa.zip |
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
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb index d6b662b24a..5bfa1eefca 100644 --- a/actionpack/lib/action_view/helpers/form_tag_helper.rb +++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb @@ -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" |