aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/form_helper.rb
diff options
context:
space:
mode:
authorMichael Koziarski <michael@koziarski.com>2008-01-08 21:16:22 +0000
committerMichael Koziarski <michael@koziarski.com>2008-01-08 21:16:22 +0000
commit934706a8da461a73fe429b3fcaa0e2ab055a9195 (patch)
tree83460d61fc1b1e3430f25795c0e47f2b046c9359 /actionpack/lib/action_view/helpers/form_helper.rb
parent96d3b7ced4cb322fdbb9d1899221cce93a30f14f (diff)
downloadrails-934706a8da461a73fe429b3fcaa0e2ab055a9195.tar.gz
rails-934706a8da461a73fe429b3fcaa0e2ab055a9195.tar.bz2
rails-934706a8da461a73fe429b3fcaa0e2ab055a9195.zip
Replace labelled_form_for example with one that will actually work. References #10738 [justinfrench, Koz]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8597 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/form_helper.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb
index 2bfb896633..f67a040149 100644
--- a/actionpack/lib/action_view/helpers/form_helper.rb
+++ b/actionpack/lib/action_view/helpers/form_helper.rb
@@ -155,8 +155,9 @@ module ActionView
#
# In many cases you will want to wrap the above in another helper, so you could do something like the following:
#
- # def labelled_form_for(name, object, options, &proc)
- # form_for(name, object, options.merge(:builder => LabellingFormBuiler), &proc)
+ # def labelled_form_for(record_or_name_or_array, *args, &proc)
+ # options = args.extract_options!
+ # form_for(record_or_name_or_array, *(args << options.merge(:builder => LabellingFormBuiler)), &proc)
# end
#
# If you don't need to attach a form to a model instance, then check out FormTagHelper#form_tag.