Re: group objects by month

eggie5
2010-04-07T02:36:02Z

or group by week for that matter...

On Apr 7, 11:35 am, eggie5
<egg...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> I have a collection of of objects from an query. I can group them by
> using:
>
> @dogs.group_by(&:birth_date)
>
> that works fine... and it groups them by date, however, I want to
> group them by month. How can I do this?