Tuesday, April 5, 2011

rails 3 group by date a datetime column

Foo.group(:start_at).count(:id)

How I can group this by date ? the "start_at" column is an datetime column

From stackoverflow

0 comments:

Post a Comment