Class | Ramaze::Helper::Paginate::Paginator |
In: |
lib/ramaze/helper/paginate.rb
|
Parent: | Object |
Provides easy pagination and navigation
Returns String with navigation div.
This cannot be customized very nicely, but you can style it easily with CSS.
Output with 5 elements, page 1, limit 3:
<div class="pager"> <span class="first grey"><<</span> <span class="previous grey"><</span> <a class="current" href="/index?pager=1">1</a> <a href="/index?pager=2">2</a> <a class="next" href="/index?pager=2">></a> <a class="last" href="/index?pager=2">>></a> </div>
Output with 5 elements, page 2, limit 3:
<div class="pager" /> <a class="first" href="/index?user_page=1"><<</a> <a class="previous" href="/index?user_page=1"><</a> <a href="/index?user_page=1">1</a> <a class="current" href="/index?user_page=2">2</a> <span class="next grey">></span> <span class="last grey">>></span> </div>