Class: Kadmin::FormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
app/helpers/kadmin/form_builder.rb

Instance Method Summary collapse

Instance Method Details

#inverted_check_box(method, options = {}) ⇒ Object

Creates a checkbox where the value is 0 when checked, 1 when unchecked.



5
6
7
# File 'app/helpers/kadmin/form_builder.rb', line 5

def inverted_check_box(method, options = {})
  Kadmin::Forms::InvertedCheckBox.new(@object_name, method, @template, '0', '1', objectify_options(options)).render
end