阅读背景:

在rails 3上使用will_paginate排序表。

来源:互联网 

I want to know how can I do the sorting of a table columns with paging(will_paginate), I've already a pagination but I don't know how I can sort the table even it has a pagination, the thing I need is even there is a pagination, when you sort the column you want, it will sort those corresponding columns you want to sort like an ID it should be ascending or descending from page 1 to the other pages until last, even you are in the page e.g. 4, when I sort the ID e.g. from descending to ascending(100 -> 1135), not only in that page but it will sort all listed data...I want to know how can I do the sorting of a ta




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: