Class: Formative::FormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- Formative::FormBuilder
- Defined in:
- lib/formative/form_builder.rb
Instance Method Summary collapse
Instance Method Details
#check_box(field_name, options = {}, checked_value = "1", unchecked_value = "0") ⇒ Object
12 13 14 |
# File 'lib/formative/form_builder.rb', line 12 def check_box(field_name, = {}, checked_value = "1", unchecked_value = "0") content_tag(wrapper(), super + field_label(field_name, ) + unit() + hint().html_safe, :class => wrapper_class('check_box', field_name)) end |