From: rretzbach Date: 2007-03-08T17:40:08+09:00 Subject: Re: Convert country name to country code On 8 Mrz., 09:38, "rretzbach" wrote: > Indexes::Countries.countries.keys.find{|code| a[code] == > identifier} Sry, too fast too furious! a should be the same hash: Indexes::Countries.countries.keys.find{|code| Indexes::Countries.countries[code] == identifier} Feel free to improve it :)