-
Notifications
You must be signed in to change notification settings - Fork 137
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
undefined method `to_i' for #<ActionController::Parameters:0x00007fec23852f70 #121
Comments
The solution I came to and that worked for me was to create a
Is it correct ? If so, it is alittle bit confusing, because Configuration section in |
Hmm that seems wrong to me. By default, the params would be |
What does |
It does not matter. I created a separate repo to reproduce the issue. Take a look at Regards |
Thanks, I'll take a look as soon as I'm able to. |
I'm using
4.8.2
version ofapi-pagination
with Rails API5.2.2
andwill_pagiante
gem.Here is the links generated in the JSON response:
When I tried to hit manually the
next
link URL as follows:it fails to respond and returns the following error:
As you see I'm getting a Hash in params:
Here is the corresponding controller action:
What am I missing ? Thank you.
The text was updated successfully, but these errors were encountered: