search for: friends_list

Displaying 1 result from an estimated 1 matches for "friends_list".

Did you mean: fields_list
2006 Jul 01
1
Paginator offset =0 ...
...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=allFriends.slice(offset,offset+limit) end I thought that the paginator object compute the offset using the size of the list, the limit and the page number ? I certainly miss somenthing ;-) thanks arnaud