-
Notifications
You must be signed in to change notification settings - Fork 372
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
Problems with pagination on Rails 4.1 #167
Comments
ok, let me know if you can make it work with rails 4.1. For now I had to convert some objects to array instead of activerecord relation. It is in particular the per_page method that create problems.
|
This seems to have been fixed with this pull request to will_paginate. It hasn't been merged yet, but you can test it out yourself using this fork. It's working for me. Hopefully it doesn't introduce any new problems and will get merged in soon. |
great, will try it out
|
This is actually a mislav/will_paginate#372 (comment) Although it isn't a |
OK, good to know. Only updating to Rails 4.1.1 still throws the |
@O-I really? I haven't tried it yet. I'll try later and report back with my findings. sigh |
It looks like this release is just the security commits. http://weblog.rubyonrails.org/2014/5/6/Rails_3_2_18_4_0_5_and_4_1_1_have_been_released/
So 4.1.2? |
Yes, indeed. Rails 4.1.1 is just security commits. Thanks for the clarification. |
I can confirm the 4-1-stable branch of Rails fixes this issue. Eagerly awaiting 4.1.2! |
Closing as this is a Rails issue, not a pg_search issue. Thanks to everyone who jumped in and figured it out! |
FWIW, I am still seeing this even with trying the latest master from rails/4-1-stable |
I'm still facing this problem with rails 4.1.1 |
Me too... |
Guys, try 4.1.2.rc1 - I've been using that without any issues. 4.1.1 was security updates only. |
By the way, the error was generated by this line in the view: |
Hm, I remember seeing that same issue you mentioned with count but I'm pretty sure empty? still worked. |
I can confirm that empty? does not work. Using Rails 4.1.1 and the latest versions of pg_search and will_paginate |
Like I said, 4.1.2.rc1 is the first version to include the fix, not 4.1.1. |
Release Candidate is a little bit risky for production environment? |
Looks like stable releases are not that safe, too ;-) |
We have been using the RC to fix this problems and have not run into any ᐧ On Sat, Jun 14, 2014 at 9:13 AM, AndreaBarbon notifications@github.com
maxwell salzberg - BackerKit, founder |
4.1.2.rc1 and rc2 don't work for me.
Am I doing something wrong? |
Just updated rails to 4.1.2 and still have the same issue:
|
It's not pg_search. |
When adding pagination with either will_paginate or kaminari on Rails 41. I get these errors
In production
And Development
Any idea what's wrong with pagination and Rails 4.1 ? It was working on Rails 3.2
The text was updated successfully, but these errors were encountered: