Im doing a little project which involves
- country list
- country abbreviation list e.g UK, US.
- dial code.
if a user enters +44, it should pull the country and country abbreviation
I was wondering what the best way to implement this is? shall i create 3 different hashes? or use nested hashes?
Before reinventing the wheel, you should check existing solutions like the countries gem: