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

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -