Reputation: 31
I've been trying to implement country_select gem into my app so that a user could select a country during the registration process(devise).
I want list of countries to be translated based on user's locale. It's actually translated in few languages
There is this gem i18n-country-translations, which contains list of countries on many different languages. How do I implement those translations when I try to select countries?
I've also found another gem from the same author i18n_country_select. But, when I try to use it like this:
<%= f.country_code_select(:user, :country) %>
I get an error:
undefined method `to_country_code_select_tag' for #<ActionView::Helpers::Tags::Select:0x007f182d81abe0>
Upvotes: 3
Views: 863