You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What if I am using the will_paginate gem to paginate my ActiveRecord object, how do I make it so that the impressionist gem counts views depending on if the object is on the current page I am on?
For example in my controller I have:
Post.paginate(page:params[:page], per_page: 5)
When I go to page 2 (localhost:3000/posts?page=2) then I am expecting the impressionist_count to increase by 1 for posts.ids 6-10
The text was updated successfully, but these errors were encountered:
What if I am using the will_paginate gem to paginate my ActiveRecord object, how do I make it so that the impressionist gem counts views depending on if the object is on the current page I am on?
For example in my controller I have:
Post.paginate(page:params[:page], per_page: 5)
When I go to page 2 (localhost:3000/posts?page=2) then I am expecting the impressionist_count to increase by 1 for posts.ids 6-10
The text was updated successfully, but these errors were encountered: