Page-by-page iterator pattern


#1

Hi all,

anyone knows where to find examples or documentation on how to implement
the page-by-page iterator pattern* in RoR?

Thanks,
Alvaro

*Page-by-page iterator pattern: you have a large amount of data and want
to show it divided in many pages, providing “next page” and “previous
page” links.


#2

there is the built in paginator, which i don’t recommend, and there
are several different plugins/gems which cam be used as replacements.

paginating_find [1]
will_paginate [2]
paginator gem [3]

[1] http://cardboardrocket.com/pages/paginating_find
[2] http://plugins.require.errtheblog.com/browser
[3] http://paginator.rubyforge.org/


#3

Thank you very much, Chris.