Permalink
Browse files

Add documentation to object method of CollectionHelpers::Builder

  • Loading branch information...
rafaelfranca committed Feb 26, 2012
1 parent 5979ad3 commit 80680e9f1ed23b6ec89f9a42a47dc752807e7d48
Showing with 6 additions and 6 deletions.
  1. +6 −6 actionpack/lib/action_view/helpers/form_options_helper.rb
@@ -578,9 +578,9 @@ def time_zone_options_for_select(selected = nil, priority_zones = nil, model = :
# 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 @@ def collection_radio_buttons(object, method, collection, value_method, text_meth
# 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

0 comments on commit 80680e9

Please sign in to comment.