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
We can't do much about these calls. A lot of automated scripts, tools and bots just love our platform.
We have exception_notifier install so every time there is an error we get an email. Which is a lot of emails.
My recommendation is - don't throw and error when the page is not a number, but instead return 1.
I have about 200 controllers and adding params[:page].try(:to_i), or some other logic to each of them means supporting all of them.
To support current behavior a configuration could be added
WillPaginate.default_pagenum =1
If it is set it will not throw and error but at least take page=1 when the ?page is not a number
Would such a PR be accepted?
The text was updated successfully, but these errors were encountered:
In this platform we get lot of calls like
or
We can't do much about these calls. A lot of automated scripts, tools and bots just love our platform.
We have exception_notifier install so every time there is an error we get an email. Which is a lot of emails.
My recommendation is - don't throw and error when the page is not a number, but instead return 1.
I have about 200 controllers and adding params[:page].try(:to_i), or some other logic to each of them means supporting all of them.
To support current behavior a configuration could be added
If it is set it will not throw and error but at least take page=1 when the ?page is not a number
Would such a PR be accepted?
The text was updated successfully, but these errors were encountered: