Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
- Defined in:
- lib/state_select_plugin.rb,
lib/state_select.rb
Instance Method Summary collapse
Instance Method Details
#to_state_select_tag(country, options, html_options) ⇒ Object
148 149 150 151 152 153 154 |
# File 'lib/state_select_plugin.rb', line 148 def to_state_select_tag(country, , ) = .stringify_keys add_default_name_and_id() value = value(object) selected_value = .has_key?(:selected) ? [:selected] : value content_tag("select", ((selected_value, country), , value), ) end |