From: Brian Candler Date: 2008-11-21T17:48:06+09:00 Subject: Re: can't convert Hash into String > 33: address += ' ' It looks like address is a String > 35: if hotel['postalCode'][0].is_a?(Hash) You are checking explicitly that hotel['postalCode'][0] is indeed a Hash > 36: address += hotel['postalCode'][0] You are trying to do string + hash, which doesn't make sense (and that's what Ruby is telling you) Have a look at what is actually being sent to you, i.e. the contents of the hash, using hotel.inspect Perhaps you if hotel[...][..].is_a?(String) earlier on. Or perhaps you need another level of deferenecing, e.g. hotel[...][...][...] to get to the value you want. Without seeing the contents of the 'hotel' object, I can't say. -- Posted via http://www.ruby-forum.com/.