Module: HelpfulFields::FormBuilder
- Defined in:
- lib/helpful_fields.rb
Instance Method Summary collapse
- #check_box_with_label(field, label, options = {}) ⇒ Object
- #radio_button_with_label(field, value, label, options = {}) ⇒ Object
Instance Method Details
#check_box_with_label(field, label, options = {}) ⇒ Object
74 75 76 |
# File 'lib/helpful_fields.rb', line 74 def check_box_with_label(field, label, ={}) check_box(field, ) + label(field, label, ) end |
#radio_button_with_label(field, value, label, options = {}) ⇒ Object
78 79 80 |
# File 'lib/helpful_fields.rb', line 78 def (field, value, label, ={}) (field, value, ) + label("#{field}_#{value}", label, ) end |