Class: UlFormBuilder::FormBuilders::GUnorderedListFormBuilder

Inherits:
ActionView::Helpers::FormBuilder
  • Object
show all
Defined in:
lib/ul_form_builder/form_builders.rb

Instance Method Summary collapse

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, options={}, html_options={} )
  label = resolve_label( method, options )
  hint = resolve_hint( options, self.object, method )
  label_class = resolve_label_class( options )
  field_id = resolve_field_id( method )
  merge_standard_class( html_options )

  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, options={}, html_options={} )
  label = resolve_label( method, options )
  hint = resolve_hint( options, self.object, method )
  label_class = resolve_label_class( options )
  field_id = resolve_field_id( method )
  merge_standard_class( html_options )

  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, options={}, html_options={} )
  label = resolve_label( method, options )
  hint = resolve_hint( options, self.object, method )
  label_class = resolve_label_class( options )
  field_id = resolve_field_id( method )
  merge_standard_class( html_options )

  super_out = super
  do_output( method, field_id, label, label_class, hint, super_out )
end