• C
    Allow collection helpers with block to access current object in the collection · a10ed709
    Carlos Antonio da Silva 提交于
    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.
    a10ed709
collection_radio_buttons.rb 858 字节