mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add documentation to object method of CollectionHelpers::Builder
This commit is contained in:
parent
5979ad31fd
commit
80680e9f1e
1 changed files with 6 additions and 6 deletions
|
@ -578,9 +578,9 @@ module ActionView
|
|||
# b.label(:class => "radio_button") { b.radio_button(:class => "radio_button") }
|
||||
# end
|
||||
#
|
||||
# There are also two special methods available: <tt>text</tt> and
|
||||
# <tt>value</tt>, which are the current text and value methods for the
|
||||
# item being rendered, respectively. You can use them like this:
|
||||
# There are also three special methods available: <tt>object</tt>, <tt>text</tt> and
|
||||
# <tt>value</tt>, which are the current item being rendered, its text and value methods,
|
||||
# respectively. You can use them like this:
|
||||
# collection_radio_buttons(:post, :author_id, Author.all, :id, :name_with_initial) do |b|
|
||||
# b.label(:"data-value" => b.value) { b.radio_button + b.text }
|
||||
# end
|
||||
|
@ -641,9 +641,9 @@ module ActionView
|
|||
# b.label(:class => "check_box") { b.check_box(:class => "check_box") }
|
||||
# end
|
||||
#
|
||||
# There are also two special methods available: <tt>text</tt> and
|
||||
# <tt>value</tt>, which are the current text and value methods for the
|
||||
# item being rendered, respectively. You can use them like this:
|
||||
# There are also three special methods available: <tt>object</tt>, <tt>text</tt> and
|
||||
# <tt>value</tt>, which are the current item being rendered, its text and value methods,
|
||||
# respectively. You can use them like this:
|
||||
# collection_check_boxes(:post, :author_ids, Author.all, :id, :name_with_initial) do |b|
|
||||
# b.label(:"data-value" => b.value) { b.check_box + b.text }
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue