Class: IceCubeSelectHelper::IceCubeSelectTag
- Inherits:
-
ActionView::Helpers::Tags::Select
- Object
- ActionView::Helpers::Tags::Select
- IceCubeSelectHelper::IceCubeSelectTag
- Includes:
- FormOptionsHelper, SelectHTMLOptions
- Defined in:
- lib/helpers/ice_cube_select_helper.rb
Instance Method Summary collapse
-
#initialize(object, method, template_object, default_schedules = nil, options = {}, html_options = {}) ⇒ IceCubeSelectTag
constructor
A new instance of IceCubeSelectTag.
- #render ⇒ Object
Methods included from FormOptionsHelper
Constructor Details
#initialize(object, method, template_object, default_schedules = nil, options = {}, html_options = {}) ⇒ IceCubeSelectTag
Returns a new instance of IceCubeSelectTag.
105 106 107 108 109 110 111 112 |
# File 'lib/helpers/ice_cube_select_helper.rb', line 105 def initialize(object, method, template_object, default_schedules = nil, = {}, = {}) @default_schedules = default_schedules @template_object = template_object = () # Select expects: object_name, method_name, template_object, choices, options, html_options super(object, method, template_object, [], , ) end |
Instance Method Details
#render ⇒ Object
114 115 116 117 |
# File 'lib/helpers/ice_cube_select_helper.rb', line 114 def render = ((value, @default_schedules, ), , value) select_content_tag(, , ) end |