Reputation:
I want to use chartkick to make a line graph of all the user signup per day.
in my views I have
<%= line_chart User.group_by_day(:created_at).count %>
but it is producing that error
Upvotes: 4
Views: 1075
Reputation: 3236
You need to install the groupdate gem to use the group_by_day
method. I'll update the chartkick documentation to make this clearer.
Upvotes: 4