ITeye博客

对数组进行分页

aroundworld2008 · 2008-08-05 17:44 · ROR · Markdown

有没有人碰到对数组进行分页,有相关的解决插件吗? will_paginate,好像不能对数组进行分页。

评论(5)

  1. #5 楼 · sina2009 · 2008-10-31 09:27

    不知道楼主是什么解决方案

    想知道

  2. #4 楼 · wanguan2000 · 2008-08-07 21:49

    array.paginate :page=>? ,:per_page=> <%= will_paginate array %> 出错了: undefined method `page_count' for #Array:0x7f0f6d4b9b40

  3. #3 楼 · aroundworld2008 · 2008-08-06 11:00

    自己找到了, array.paginater :page=>? ,:per_page=> 就行了,还是will_paginate

  4. #2 楼 · open2ye · 2008-08-05 23:59

    a ??

  5. #1 楼 · universac · 2008-08-05 18:31

    什么意思?没明白

评论功能维护中,当前仅展示历史评论。