[Rails] Re: Create nested hash from array of objects

2009-02-19 Thread northband_101
Nice - thanks for the tip. I got this working great now. On Feb 19, 11:02 pm, Rick wrote: > Looks like you're starting with ActiveRecord's so you could possibly > take advantage of: > > spec_hash = Spec.find(4057).attributes > > and glue something together. > > On Feb 19, 3:54 pm, northband

[Rails] Re: Create nested hash from array of objects

2009-02-19 Thread Rick
Looks like you're starting with ActiveRecord's so you could possibly take advantage of: spec_hash = Spec.find(4057).attributes and glue something together. On Feb 19, 3:54 pm, northband wrote: > Hi - > > What is the best way to create a nested hash from an array of objects? > > Here's what I'm