Class: ActionView::Helpers::InstanceTag
- Inherits:
-
Object
- Object
- ActionView::Helpers::InstanceTag
- Defined in:
- lib/countries/select_helper.rb
Instance Method Summary collapse
Instance Method Details
#to_country_select_tag(priority_countries, options, html_options) ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/countries/select_helper.rb', line 33 def to_country_select_tag(priority_countries, , ) = .stringify_keys add_default_name_and_id() value = .delete(:selected) || value(object) content_tag("select", ( (value, priority_countries), , value ), ) end |