我偶然发现了如何将acts_as_taggable(在类固醇上)和will_paginate gems 一起工作的问题。我在这个问题上发现的是:http ://www.mckinneystation.com/2007/08/20/pagination-with-acts_as_taggable_on_steroids-acts_as_ferret-and-will_paginate/
但它的日期是 2007 年,可能有更新的东西吗?你能否详细解释我应该怎么做才能使修复工作?
我偶然发现了如何将acts_as_taggable(在类固醇上)和will_paginate gems 一起工作的问题。我在这个问题上发现的是:http ://www.mckinneystation.com/2007/08/20/pagination-with-acts_as_taggable_on_steroids-acts_as_ferret-and-will_paginate/
但它的日期是 2007 年,可能有更新的东西吗?你能否详细解释我应该怎么做才能使修复工作?
还有另一篇博文 http://blog.wolfman.com/articles/2007/07/30/paginating-acts_as_taggable-with-will_paginate
帖子底部附近有一个更新,建议使用
Model.find_options_for_tagged_with(@tag)
获取传递给分页方法的选项。您只需要根据需要合并 :page 和 :per_page 选项。