Module: BootstrapForm::Select2
- Defined in:
- lib/bootstrap_form/select2.rb
Instance Method Summary collapse
Instance Method Details
#select2(method, choices = nil, options = {}, html_options = {}, &block) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/bootstrap_form/select2.rb', line 4 def select2(method, choices = nil, = {}, = {}, &block) form_group_builder(method, , ) do prepend_and_append_input(method, ) do @template.select2(@object_name, method, choices, (), @default_options.merge(), &block) end end end |