Class: ActionView::Helpers::InstanceTag

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

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#to_us_state_select_tag(options, html_options) ⇒ Object



49
50
51
52
53
# File 'lib/us_states_select.rb', line 49

def to_us_state_select_tag(options, html_options)
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  ("select", add_options(us_state_options_for_select(value(object), options), options, value(object)), html_options)
end