aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-09-08 19:23:33 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-09-08 19:23:33 +0000
commitd7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa (patch)
treebb1886826ebfc5b0e1b7cd36be73d11a265da9bb /actionpack/lib
parent84bfdafa085daa11aa63491a7856638e05730727 (diff)
downloadrails-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/lib')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb2
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"