aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2006-05-28 23:39:37 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2006-05-28 23:39:37 +0000
commit140a998de31ed4547e0d21715165f4b338030673 (patch)
tree99b1b2d145cfef351ce49d06e9cda1c459ed404a /actionpack/lib/action_view/helpers/form_tag_helper.rb
parentd84ba8b8a93330fbd893b809284d3f21c8eb1177 (diff)
downloadrails-140a998de31ed4547e0d21715165f4b338030673.tar.gz
rails-140a998de31ed4547e0d21715165f4b338030673.tar.bz2
rails-140a998de31ed4547e0d21715165f4b338030673.zip
Added :method handling for other verbs to remote_form_tag and remote_form_for [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4374 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_tag_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_tag_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index 0db1977051..816f1064f7 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -20,8 +20,8 @@ module ActionView
def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
html_options = options.stringify_keys
html_options["enctype"] = "multipart/form-data" if html_options.delete("multipart")
- html_options["action"] = url_for(url_for_options, *parameters_for_url)
-
+ html_options["action"] = url_for(url_for_options, *parameters_for_url)
+
method_tag = ""
case method = html_options.delete("method")