background preloader

Plugin

Facebook Twitter

Eclipse

Store countries with ISO-3166 codes in rails. I’ve been trying to give rebirth to an old internal project at my company, abandoned circa 2006, and this is one of the code pieces I think it could be useful to others.

Store countries with ISO-3166 codes in rails

I wanted to store country information as an ISO code, so here is the plugin to make it work It’s translated using the translation from the iso-codes package, so I guess it’s as good as it can get by now. If you want to contribute, please do it to the iso-codes package and let me know, so I can update it too. Shop: Computer hardware poster 1.7. Category acts_as_rated. A New Version of acts_as_rated plugin Posted by Guy Naor on 02/18/2007 I just uploaded to rubyforge a new version of the acts_as_rated plugin.

This version is thanks to Tiago Serafim who tested it and proposed the needed changes needed to make it work with MySQL. Tiago also proposed a new method: rated_by? (rater) that returns true if the object is rated by the passed rater.