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
I don't think so.
We usually send a page parameter straight into will_paginate.
Since this seems to be a common practice, I think will_paginate should handle it properly.
In PageNumber#initialize, there's a call to Integer which raises exceptions if value is not parseable. I think we should rescue that.
Yep, the exception for invalid page numbers is deliberate. You shouldn't be experiencing errors anyway unless something goes terribly wrong with your pagination links, or a bot hits your site with nonsense query parameters. All of these problems should be remedied in your app under your choosing.
I don't think so.
We usually send a page parameter straight into will_paginate.
Since this seems to be a common practice, I think will_paginate should handle it properly.
In PageNumber#initialize, there's a call to
Integer
which raises exceptions if value is not parseable. I think we should rescue that.https://github.com/mislav/will_paginate/blob/master/lib/will_paginate/page_number.rb#L16
Am I missing anything here?
Great job, btw, @mislav 😄
This gem saves lives...
The text was updated successfully, but these errors were encountered: