aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/collection_check_boxes.rb
Commit message (Collapse)AuthorAgeFilesLines
* Allow collection helpers with block to access current object in the collectionCarlos Antonio da Silva2012-02-131-2/+2
| | | | | | | | | | This gives a lot more flexibility to the user, for instance to generate a collection of check boxes and labels, allowing to add custom classes or data-* attributes to the label/check_box using another object attribute. This basically mimics options_for_select functionality that accepts a third option for each item to generate html attributes for each option.
* Remove default class to collection_check_boxes andRafael Mendonça França2012-02-021-1/+1
| | | | | | collection_radio_buttons [Carlos Antonio da Silva + Rafael Mendonça França]
* Extract common collection helpers to a module to avoid too much inheritanceCarlos Antonio da Silva2012-02-021-1/+5
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Create a Builder factory class to use with collection helpers + blockCarlos Antonio da Silva2012-02-021-9/+10
| | | | | | | | This will make it easy for the user to handle how check box/radio and labels should be generated, abstracting any text/value/default html options required to make it work. [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor collection helpers to extract radio/checkbox/label callsCarlos Antonio da Silva2012-02-021-4/+8
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Remove collection_wrapper* and item_wrapper* optionsCarlos Antonio da Silva2012-02-021-1/+1
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor the methods to use instance variablesRafael Mendonça França2012-02-021-6/+6
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor render_collection methodRafael Mendonça França2012-02-021-3/+1
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Add collection_check_boxes helperCarlos Antonio da Silva2012-02-021-0/+30
[Carlos Antonio da Silva + Rafael Mendonça França]