Permalink
Browse files

Get symbol definitions of methods converted to strings [DHH]

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5045 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 5360e47 commit 5a5f85d5bea6578e900d5af51a9a2706689d08aa @dhh dhh committed Sep 6, 2006
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -24,7 +24,7 @@ def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
method_tag = ""
- case method = html_options.delete("method")
+ 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

0 comments on commit 5a5f85d

Please sign in to comment.