Class: Formative::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
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, options = {}, checked_value = "1", unchecked_value = "0")
  (wrapper(options), super + field_label(field_name, options) + unit(options) + hint(options).html_safe, :class => wrapper_class('check_box', field_name))
end