-
Notifications
You must be signed in to change notification settings - Fork 869
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
per page = 0 causes FloatDomainError:Infinity when total_pages is called. #452
Comments
mserran2
pushed a commit
to mserran2/will_paginate
that referenced
this issue
Oct 8, 2015
- Fix total_pages method to work with per_page = 0
mserran2
pushed a commit
to mserran2/will_paginate
that referenced
this issue
Oct 8, 2015
- Fix total_pages method to work with per_page = 0
I can confirm that this is still an issue. Any reason it has not been released? |
Same issue here. Just need to check that you got proper integer value before passing it to |
There's an open pull request for this, but it has yet to be merged: #453 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
next_page, previous_page and total_pages all cause an Infinity error when to be thrown when the per_page variable is set to 0.
The text was updated successfully, but these errors were encountered: