ruby on rails - country_select display full country name on show action -
i use gem 'country_select' choose country form on rails app when go show or index action see stored value. there method convert value full name string of country?
[au] => "australia"
the documentation includes how exactly want.
country = iso3166::country[country_code] country.translations[i18n.locale.to_s] || country.name
Comments
Post a Comment