Module: ActionView::Helpers::ToCountrySelectTag
- Included in:
- CountrySelect, InstanceTag
- Defined in:
- lib/country_select.rb
Instance Method Summary collapse
Instance Method Details
#to_country_select_tag(priority_countries, options, html_options) ⇒ Object
86 87 88 89 90 91 92 93 94 95 96 97 |
# File 'lib/country_select.rb', line 86 def to_country_select_tag(priority_countries, , ) use_iso_codes = .delete(:iso_codes) = .stringify_keys add_default_name_and_id() value = value(object) content_tag("select", ( (value, priority_countries, use_iso_codes), , value ), ) end |