From d7e4f5f22e87b1a5a7c234210a56a8cfb71e21fa Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 8 Sep 2006 19:23:33 +0000 Subject: 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 --- actionpack/lib/action_view/helpers/form_tag_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') 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" -- cgit v1.2.3