Skip to content

Commit

Permalink
Since to_sing, we need to check for empty string
Browse files Browse the repository at this point in the history
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information
dhh committed Sep 8, 2006
1 parent 84bfdaf commit d7e4f5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/form_tag_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit d7e4f5f

Please sign in to comment.