Skip to content
Browse files

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
  • Loading branch information...
1 parent 84bfdaf commit d7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa @dhh dhh committed Sep 8, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_tag_helper.rb
View
2 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -27,7 +27,7 @@ def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
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"

0 comments on commit d7e4f5f

Please sign in to comment.
Something went wrong with that request. Please try again.