The will_paginate view method accepts a number of optional arguments. For example:
<%= will_paginate @events, :previous_label => "Older events", :next_label => "Newer events" %>
:controller => "foo", :action => nil
All options not recognized by will_paginate will become HTML attributes on the container
element for pagination links (the DIV). For example:
<%= will_paginate @posts, :style => 'color:blue' %>
<div class="pagination" style="color:blue"> ... </div>
Another view method is page_entries_info. It renders a message containing number of displayed vs. total entries.
<%= page_entries_info @posts %>
Displaying posts 6 - 12 of 26 in total
The default output contains HTML. Add :html => false for plain text.
:html => false
Document the available options for will_paginate in the README.
I've put it on the wiki instead.
Thanks, but putting it in the README is better. Then I can check out the code, go away from Internet access, and still be able to read the documentation while I work on some code.
If you've checked out the code, then you can look at the docs in source code comments ;)
Ok fair enough :) By the way, thank you for renewing your efforts on this gem! Lots of great updates today!