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 renders the wrong number of pages #492

Open
tokhi opened this issue Jul 14, 2016 · 4 comments
Open

will_paginate renders the wrong number of pages #492

tokhi opened this issue Jul 14, 2016 · 4 comments

Comments

@tokhi
Copy link

tokhi commented Jul 14, 2016

I am using the latest will_paginate version.

This is what i have in the view:

<%= will_paginate(@all_profiles, :class => "innung-pagination", :inner_window => 3, :outer_window => 1, :previous_label => "", :next_label => "") %>

it renders something like below:

1 2 3 4 5 6 7 ... 102 103

As you see it give me '102' and `103' but in reality I only have 99 pages.

Any solution for this?

@novikserg
Copy link

@tokhi mind creating a spec/example project to show the bug?

@mislav
Copy link
Owner

mislav commented Oct 15, 2016

@tokhi Is this still a problem? How is @all_profiles fetched? Is it a complex query? The COUNT sql query that will_paginate issues might not have been correct.

@kt32291
Copy link

kt32291 commented Oct 20, 2016

I'm experiencing this also.

@hubertjakubiak
Copy link

@kt32291 Could you share more details with us? I tried to reproduce this issue with some basic query, but it's working fine.

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

No branches or pull requests

5 participants