Class: UlFormBuilder::FormBuilders::GUnorderedListFormBuilder
- Inherits:
-
ActionView::Helpers::FormBuilder
- Object
- ActionView::Helpers::FormBuilder
- UlFormBuilder::FormBuilders::GUnorderedListFormBuilder
- Defined in:
- lib/ul_form_builder/form_builders.rb
Instance Method Summary collapse
- #collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
- #select(method, choices, options = {}, html_options = {}) ⇒ Object
- #time_zone_select(method, priority_zones = nil, options = {}, html_options = {}) ⇒ Object
Instance Method Details
#collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
60 61 62 63 64 65 66 67 68 69 |
# File 'lib/ul_form_builder/form_builders.rb', line 60 def collection_select( method, collection, value_method, text_method, ={}, ={} ) label = resolve_label( method, ) hint = resolve_hint( , self.object, method ) label_class = resolve_label_class( ) field_id = resolve_field_id( method ) merge_standard_class( ) super_out = super do_output( method, field_id, label, label_class, hint, super_out ) end |
#select(method, choices, options = {}, html_options = {}) ⇒ Object
49 50 51 52 53 54 55 56 57 58 |
# File 'lib/ul_form_builder/form_builders.rb', line 49 def select( method, choices, ={}, ={} ) label = resolve_label( method, ) hint = resolve_hint( , self.object, method ) label_class = resolve_label_class( ) field_id = resolve_field_id( method ) merge_standard_class( ) super_out = super do_output( method, field_id, label, label_class, hint, super_out ) end |
#time_zone_select(method, priority_zones = nil, options = {}, html_options = {}) ⇒ Object
71 72 73 74 75 76 77 78 79 80 |
# File 'lib/ul_form_builder/form_builders.rb', line 71 def time_zone_select( method, priority_zones=nil, ={}, ={} ) label = resolve_label( method, ) hint = resolve_hint( , self.object, method ) label_class = resolve_label_class( ) field_id = resolve_field_id( method ) merge_standard_class( ) super_out = super do_output( method, field_id, label, label_class, hint, super_out ) end |