Module: LocastyleComponents::Forms
- Included in:
- ActionView::Helpers::FormBuilder
- Defined in:
- lib/locastyle_components/forms.rb,
lib/locastyle_components/forms/base.rb,
lib/locastyle_components/forms/switch_button.rb
Defined Under Namespace
Classes: Base, SwitchButton
Instance Method Summary collapse
Instance Method Details
#locastyle_switch_button(attribute, options = {}) ⇒ Object
6 7 8 |
# File 'lib/locastyle_components/forms.rb', line 6 def (attribute, = {}) LocastyleComponents::Forms::SwitchButton.new(self, @template, attribute, ).build end |