我偶然发现了如何将其一起工作的问题Acts_as_taggable(在类固醇上)和will_paginate Gems。我在这个问题上发现的是: http://www.mckinneystation.com/2007/08/20/pagination-with-acts_as_as_taggable_on_steroids-acts_as_as_as_as_as_as_as_as_as_as_as_as_as_erth-willret-and-will_paginate/

但是它的日期是2007年,可能还有一些最近的东西吗?您还可以详细解释我该怎么做才能使该修复工作?

有帮助吗?

解决方案

还有另一篇博客文章 http://blog.wolfman.com/articles/2007/07/30/paginating-acts_as_as_taggable-with_paginate

帖子底部附近有一个更新,建议使用

Model.find_options_for_tagged_with(@tag)

获取选项以传递到分页方法。您只需要根据需要合并:page and:per_page选项。

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top