Class: Locomotive::ToggleInput

Inherits:
Formtastic::Inputs::BooleanInput
  • Object
show all
Defined in:
app/inputs/locomotive/toggle_input.rb

Instance Method Summary collapse

Instance Method Details

#to_htmlObject



4
5
6
7
8
9
10
# File 'app/inputs/locomotive/toggle_input.rb', line 4

def to_html
  input_wrapping do
    hidden_field_html <<
    label_html <<
    check_box_html
  end
end