Displaying 1 result from an estimated 1 matches for "allfriend".
Did you mean:
allfriends
2006 Jul 01
1
Paginator offset =0 ...
Hi list,
I Try to do a custom paginator, but the offset never increase ??
def
showFriends
@friends_pages = Paginator.new self, allFriends.size, 3,
@params[''page'']
limit= @friends_pages.items_per_page
offset= @friends_pages.current.offset
logger.info("limit=#{limit}, offset=#{offset}")
<==== ALWAYS 0 since params[''page''] =2 for
@friends_list=al...