Greetings, I enjoyed your video on Chartkick, it's very informative. What I would like your advice on, is how do I use Chartkick alongside the Impressionist gem. To be more clear. I would like to graph the impressions of different pages. Lets say for example, the user show page. I would like to get the
This approach isn't working for me. I need to be able to get the impressions count with scopes for days, weeks and months and years. I'm currently using Postgres. I've been searching for an approach all day long, to no avail. If I'm able to use the scopes across model types like Product show page, etc. That would be great. Thanks again!
The group_by_day & and group_by_month, methods are not being found for some reason. It throws an undefined method error for model, when I try to use the it in my view. I don't know if its an issue with the gem or Postgres compatibility.
The gem's documentation does say that it is compatible with postgres, but I am not sure if there is any additional setup on postgres like there is with MySQL.
Greetings, I enjoyed your video on Chartkick, it's very informative. What I would like your advice on, is how do I use Chartkick alongside the Impressionist gem. To be more clear. I would like to graph the impressions of different pages. Lets say for example, the user show page. I would like to get the
This approach isn't working for me. I need to be able to get the impressions count with scopes for days, weeks and months and years. I'm currently using Postgres. I've been searching for an approach all day long, to no avail. If I'm able to use the scopes across model types like Product show page, etc. That would be great. Thanks again!
Impressionist documentation
https://github.com/charlotte-ruby/impressionist
You might be able to do something like this for a daily count
The group_by_day & and group_by_month, methods are not being found for some reason. It throws an undefined method error for model, when I try to use the it in my view. I don't know if its an issue with the gem or Postgres compatibility.
Thanks.
The methods are within the GroupDate gem https://github.com/ankane/groupdate
The gem's documentation does say that it is compatible with postgres, but I am not sure if there is any additional setup on postgres like there is with MySQL.
Your method is working perfectly in the rails console. I will test in the view today. Thanks.