aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/tags/collection_radio_buttons.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-68/+4
| | | | [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-8/+31
| | | | | | | | 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/+10
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Remove collection_wrapper* and item_wrapper* optionsCarlos Antonio da Silva2012-02-021-20/+2
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor value sanitization logicCarlos Antonio da Silva2012-02-021-1/+1
| | | | | | | | | | * Extract value sanitization from default name and id method and new collection helpers; * No need to sanitize value in default name and id always; * Improve value_before_type_cast to avoid concating the same method name string twice. [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor the methods to use instance variablesRafael Mendonça França2012-02-021-15/+15
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Refactor render_collection methodRafael Mendonça França2012-02-021-10/+8
| | | | [Carlos Antonio da Silva + Rafael Mendonça França]
* Create collection_radio_buttons helperCarlos Antonio da Silva2012-02-021-0/+85
[Carlos Antonio da Silva + Rafael Mendonça França]