DataMapper Pager Pagination Gem
dm-pager is a pagination gem for DataMapper, providing a feature rich pagination solution for both limiting records as well as the rendered html markup. Although you may customize the rendering as you wish, or use custom views, the default implementation is flexible and most likely will not require alteration other than via CSS.
Pager Usage
User.page(2)
User.page(1, :per_page => 5)
User.page(5).pager.to_html
User.page(5).pager.to_html(:previous_text => '<<', :next_text => '>>')Bookmark/Search this post with:
Delicious
Digg
StumbleUpon
Reddit
Facebook