开发者

will-paginate issues for searchresults in ruby on rails

my search results are stored in the @searchresults variable as subarrays - for example it has 3 sub-class of results books开发者_运维百科, people, carnames, such that each of this results are available in the search result as @searchresults[:books_results] etc,.

I need some help on how to apply the will_paginate for these sections (books, people etc), the railcast dealing with the paginations has a simplified version @products on which the pagination is applied compared to my @searchresults where it has kinda sub-classes of results.

what changes shld i do in controller, model?

your help is appreciated very much. thanks

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜