Grouping by week/month/etc & ActiveRecord?

前端 未结 7 1325
野的像风
野的像风 2020-12-01 09:22

I\'m doing some statics calculation in my product. A user has performed a number of operations, let\'s say posted comments. I want to be able to show them how many comment

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 09:34

    Check out the group date gem

    https://github.com/ankane/groupdate

    it has recent commits, works with postgresql, integrates easily with chart kick for fast charting, and works with time zones!!

提交回复
热议问题