From: Lee Griffiths Date: 2008-11-25T02:52:25+09:00 Subject: Re: what's wrong with this method equinox wrote: > can someone tell me what's wrong with this method?? > > http://pastie.org/322677 > > after that FRIENDS I print I want to iterate over the hash that I have > and print the key, value of each separated by a "/" You have a syntax error, for a start. Is this the problem you mean? @friends.each do {|key, value| puts("#{key}/#{value} ,") } It's EITHER { } OR do...end. Not both (or half of one)! :) -- Posted via http://www.ruby-forum.com/.