Saturday, November 07, 2009

Freebie for Ruby: ISO Country List

So every time when a customer ask you to get an ISO country list setup on your project, you start to pull your hair and dig the source. Usually you would end up finding some kind of source, but then spend a few hours to do data nursing. This is what I have did, and to avoid you do it again, here is my output:

http://gist.github.com/228512

If there is smarter way please let me know :) Otherwise hope you found this link useful.


Note: The source is from wikipedia, and it supports a names hash which allows you to put in more than name in different language. In my case I have put in english, traditional chinese and simplified chinese.

0 comments: