This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
Run the following if you haven't already:
gem sources -a http://gems.github.com
Install the gem(s):
sudo gem install mislav-will_paginate
Backwards incompatibility
The 3.0 version of will_paginate (also known as the “agnostic” branch) introduces some backwards incompatibility for scripts that hack into will_paginate: extend modules, override methods, subclass LinkRenderer etc. Basically, this version is a total rewrite of the whole library, including tests (which are converted to specs).
Here is a list of changes:
- the directory and modules layout has changed to better support adding of finders or view adapters in the future;
- removed
WillPaginate::enable_actionviewand::enable_activerecordmethods—also theWillPaginate::enablemethod doesn’t do anything anymore (kept for compatibility); :prev_labelview parameter is now:previous_label, old name still functions but it’s deprecated;WillPaginate::LinkRenderer(nowWillPaginate::ViewHelpers::LinkRenderer) has changed so much that any code that subclassed it or interfaced with it in any way is expected not to work anymore;- markup for the current page has changed from
<span class="current">1</span>to<em>1</em>, you should update your CSS to remove its default italic style; - the classname for the previous page link has changed from “prev_page” to “previous_page”;
WillPaginate::Collection#page_countlegacy method is no longer supported, any 3rd-party libraries that still implement this method (instead of the new#total_pages) are expected to break.







