Class: FormtasticBootstrap::Inputs::SelectInput
- Inherits:
-
Formtastic::Inputs::SelectInput
- Object
- Formtastic::Inputs::SelectInput
- FormtasticBootstrap::Inputs::SelectInput
- Includes:
- Base, Base::Collections, Base::GroupedCollections
- Defined in:
- lib/formtastic-bootstrap/inputs/select_input.rb
Instance Method Summary collapse
Methods included from Base::Wrapping
#add_on_content, #add_on_wrapper_classes, #bootstrap_wrapping, #form_group_wrapping, #input_content, #prepended_or_appended?, #wrapper_html_options
Methods included from Base::Labelling
#label_html, #label_html_options
Methods included from Base::Hints
Methods included from Base::Errors
#error_first_html, #error_html, #error_list_html, #error_none_html, #error_sentence_html
Methods included from Base::Html
#form_control_input_html_options, #input_html_options
Instance Method Details
#grouped_select_html ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/formtastic-bootstrap/inputs/select_input.rb', line 12 def grouped_select_html builder.grouped_collection_select( input_name, grouped_collection, group_association, group_label_method, value_method, label_method, , ) end |
#select_html ⇒ Object
8 9 10 |
# File 'lib/formtastic-bootstrap/inputs/select_input.rb', line 8 def select_html builder.select(input_name, collection, , ) end |
#to_html ⇒ Object
25 26 27 28 29 |
# File 'lib/formtastic-bootstrap/inputs/select_input.rb', line 25 def to_html bootstrap_wrapping do [:group_by] ? grouped_select_html : select_html end end |