module ActionView::Helpers::ToCountrySelectTag

Public Instance Methods

to_localized_country_select_tag(priority_countries, options, html_options) click to toggle source
# File lib/localized_country_select.rb, line 93
def to_localized_country_select_tag(priority_countries, options, html_options)
  html_options = html_options.stringify_keys
  add_default_name_and_id(html_options)
  content_tag("select",
    add_options(
      localized_country_options_for_select(value, priority_countries, options).html_safe,
      options, value
    ), html_options
  )
end