如何使will_paginate与液体一起工作 [英] How to make will_paginate work with liquid

查看:72
本文介绍了如何使will_paginate与液体一起工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我设法进行了一点改动,以使will_paginate与液体配合使用: http://gist.github.com/426737

I managed to make a little hack to make will_paginate work with liquid: http://gist.github.com/426737

我想知道这是否安全吗?想法?

I wonder if this is safe? Ideas?

推荐答案

如果您尝试这样的操作,我认为它会更安全: https://gist.github.com/2783697

I think it'd be safer if you tried something like this: https://gist.github.com/2783697

基本上,它定义了一个使用WillPaginate对您的集合进行分页的Liquid Block.

Basically, that defines a Liquid Block that uses WillPaginate to paginate your collection.

这篇关于如何使will_paginate与液体一起工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆