From: "David A. Black" Date: 2008-08-20T22:10:02+09:00 Subject: Re: array of hashes - need to iterate and calulate stats but how Hi -- On Wed, 20 Aug 2008, Lex Williams wrote: > David A. Black wrote: >> Hi -- >> >> On Wed, 20 Aug 2008, Lex Williams wrote: >> >>>>> name , and as value , the number of units sold. I'm not sure about how >>>> >>>> >>>> David >>> >>> you could use select on the array , and lose those if's . something like >>> this : >> >> What if's? You mean the unless? >> >> >> David > > > I was referring to the first snippet I posted. Whoops, I forgot you had posted the one I had responded to in the first place. /me reaches for the coffee.... :-) David -- Rails training from David A. Black and Ruby Power and Light: Intro to Ruby on Rails January 12-15 Fort Lauderdale, FL Advancing with Rails January 19-22 Fort Lauderdale, FL See http://www.rubypal.com for details and updates!