Class: ActionView::Helpers::InstanceTag

Inherits:
Object
  • Object
show all
Defined in:
lib/enhanced_select.rb

Instance Method Summary collapse

Instance Method Details

#to_enhanced_select_tag(choices, options, html_options) ⇒ Object



42
43
44
45
46
47
# File 'lib/enhanced_select.rb', line 42

def to_enhanced_select_tag choices, options, html_options
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  value = value(object)
   "select", add_options(enhanced_options_for_select(choices, value), options, value), html_options
end