We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
FloatDomainError: Infinity # ./lib/will_paginate/collection.rb:16:in `ceil' # ./lib/will_paginate/collection.rb:16:in `total_pages' # ./spec/collection_spec.rb:83:in `block (3 levels) in <top (required)>'
The text was updated successfully, but these errors were encountered:
- Fixes mislav#452
41afdfe
- Fix total_pages method to work with per_page = 0
4b2ac77
I can confirm that this is still an issue. Any reason it has not been released?
Sorry, something went wrong.
Same issue here. Also occurs on passing empty string as per_page value.
per_page
Just need to check that you got proper integer value before passing it to paginate.
paginate
There's an open pull request for this, but it has yet to be merged: #453
No branches or pull requests
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: