From: dblack@... Date: 2007-08-11T02:53:20+09:00 Subject: Re: What the...? Hash does not have a key it really should have! Hi -- On Sat, 11 Aug 2007, Joshua Muheim wrote: > Hi all > > irb(main):001:0> conversion_classes = { > irb(main):002:1* 'Music labels' => 'MusicLabel', > irb(main):003:1* 'Music artists' => 'MusicArtist', > irb(main):004:1* 'Online Shops' => 'OnlineShop', > irb(main):005:1* 'Psy Communities' => 'PsyCommunity', > irb(main):006:1* } > => {"Psy Communities"=>"PsyCommunity", "Music labels"=>"MusicLabel", > "Online Shops"=>"OnlineShop", "Music artists"=>"MusicArtist"} > irb(main):007:0> conversion_classes.has_key? "Music Labels" > => false > > What the heck is wrong here? I'm feeling quite blind at the moment, lol! You're capitalizing "Labels". David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)