1
0
Fork 0
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:
Rafael Mendonça França 2012-02-26 18:59:56 -03:00
parent 5979ad31fd
commit 80680e9f1e

View file

@ -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