[Rails] Re: ActiveRecord.find results as array of arrays

2008-12-17 Thread Franz Strebel
On Wed, Dec 17, 2008 at 9:08 AM, michael_teter michael.te...@gmail.com wrote: Howdy. I imagine this is an elementary Ruby question, but I'd love to learn the right Ruby idiom for this. I'd like to take the results of an ActiveRecord.find() and turn them into an array of arrays

[Rails] Re: ActiveRecord.find results as array of arrays

2008-12-17 Thread michael_teter
That's exactly what I was after. I knew it was possible, but I was missing collect :) As for symbols, at one point I used them a lot, but then I ran into some places that seemed to really want strings. Out of confusion, I stopped using symbols in a lot of cases. I will re-evaluate where I'm