@coll= [{:period=>{:people=>[#], :date=>Sun, 08 Feb 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #], :date=>Sun, 15 Feb 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #, #, #, #, #, #, #, #], :date=>Sun, 22 Feb 2009}}, {:period=>{:people=>[#, #], :date=>Sat, 28 Feb 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #], :date=>Sun, 01 Mar 2009}}, {:period=>{:people=>[#, #, #], :date=>Sun, 08 Mar 2009}}, {:period=>{:people=>[#, #, #, #, #, #], :date=>Sun, 15 Mar 2009}}, {:period=>{:people=>[#], :date=>Wed, 18 Mar 2009}}, {:period=>{:people=>[#, #, #], :date=>Sun, 22 Mar 2009}}, {:period=>{:people=>[#], :date=>Sun, 29 Mar 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #, #, #, #], :date=>Sun, 05 Apr 2009}}, {:period=>{:people=>[#], :date=>Sun, 12 Apr 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #, #, #, #, #], :date=>Sun, 19 Apr 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #, #, #], :date=>Sun, 26 Apr 2009}}, {:period=>{:people=>[#, #, #, #, #, #, #, #, #, #, #, #, #, #, #, #], :date=>Sun, 03 May 2009}}] I have the above collection of hashes. Each hash has a date and a collection of people objects. I want to group this collection by month according to the date attribute. What''s a good way to do this? I can''t think... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.