Francesco wrote: > Hello all! > Can this be done better/nicer? > In @person i have an array of telephones. telephone is a hash with an id > and a number, and i would like to join them. > > @person.telephones.collect {|x| [] << x.number}.join(', ') > > I don't know why, but I don't like this line of code... how would you > write it? @person.telephones.collect {|x| x.number}.join(', ') T.