-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Complete country name from the code like 'Australia' from 'AU' #18
Comments
c = Carmen::Country.coded('AU')
=> <#Carmen::Country name="Australia">
c.name
=> "Australia" |
@c= 'US' yes I found this but forgot to update it . Anyway thank you. |
If we write this way in the controller @c = 'current_user.country_code' It doesn't work ... Can you help? |
yes when I print @Country there is nothing (blank)... even though country_zone = US for that user. |
My point is that what's returned is not a string, but a Country object. Maybe you could invoke the object's .name method? |
How can we get complete country name from the code like 'Australia' from 'AU'?
Any help?
The text was updated successfully, but these errors were encountered: