If you ever find this problem (Github Issue) you should know that WillPaginate 3.0 isn’t backwards compatible.
This also is tightly coupled with the new Active Record implementation (Now it returns ActiveRecord::Relation, which are lazy arrays)
This solved the problem I was having:
|
1
2 |
|
Be careful when you upgrade your will_paginate gem.
本文介绍了如何解决升级到Will Paginate 3.0后遇到的兼容性问题,特别是针对新的ActiveRecord实现返回的ActiveRecord::Relation懒加载数组特性所带来的挑战,并提供了解决方案。
9294

被折叠的 条评论
为什么被折叠?



