Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

will_paginate views per page #259

Open
jameschou93 opened this issue Nov 2, 2017 · 0 comments
Open

will_paginate views per page #259

jameschou93 opened this issue Nov 2, 2017 · 0 comments

Comments

@jameschou93
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant