alexrabarts / iso_country_codes

A Ruby library that provides ISO 3166-1 country codes/names and ISO 4217 currencies
http://github.com/alexrabarts/iso-country-codes
163 stars 62 forks source link

Making Dropdowns of Countries in Rails #3

Closed nodanaonlyzuul closed 12 years ago

nodanaonlyzuul commented 12 years ago

Hey Alex.

My coworker and I added a method to make it easy to get a two-dimensional array of countries and their codes (in any format).

See @IsoCountryCodes.for_select@ for implementation. We also added a couple of tests.

Let me know what you think - thanks for the great gem.

-Stephen

SeenHub commented 12 years ago

Thanks for the patch. Released in version 0.3.0.