mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user