mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05: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:
parent
96d3b7ced4
commit
934706a8da
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue