aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_tag_helper.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-11-13 11:13:11 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-11-13 11:13:11 +0000
commit947cec29d5f074682052e8412904cc88a914fdbc (patch)
tree2888aa13f47984175aba6f83bacf6e925b5d5a60 /actionpack/lib/action_view/helpers/form_tag_helper.rb
parent4a5b042fc7805f95b4a096cafe0d57e105246095 (diff)
downloadrails-947cec29d5f074682052e8412904cc88a914fdbc.tar.gz
rails-947cec29d5f074682052e8412904cc88a914fdbc.tar.bz2
rails-947cec29d5f074682052e8412904cc88a914fdbc.zip
Added FormHelper#form_for and FormHelper#fields_for that makes it easier to work with forms for single objects also if they don't reside in instance variables [DHH]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3003 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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/form_tag_helper.rb b/actionpack/lib/action_view/helpers/form_tag_helper.rb
index 5933be2575..eb789cd457 100644
--- a/actionpack/lib/action_view/helpers/form_tag_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_tag_helper.rb
@@ -15,7 +15,7 @@ module ActionView
# Options:
# * <tt>:multipart</tt> - If set to true, the enctype is set to "multipart/form-data".
# * <tt>:method</tt> - The method to use when submitting the form, usually either "get" or "post".
- def form_tag(url_for_options = {}, options = {}, *parameters_for_url)
+ def form_tag(url_for_options = {}, options = {}, *parameters_for_url, &proc)
html_options = { "method" => "post" }.merge(options.stringify_keys)
if html_options["multipart"]