On Thu, May 28, 2009 at 12:01 PM, fRAnKEnSTEin
<shirkavand-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:>
> Hi there,
>
> At this moment will_paginate is showing so many page numbers , for
> example:
>
> << Previous 1 2 3 4 5 6 7 8 9 10 ... 113 114 next >>
>
> I want to configure this, so it will look like:
>
> << Previous 1 2 3 4 5 ... 113 114 next >>
>
> In other words, i need to change tha amount of pages showed in the
> paging, is this configurable?
>
> Regards
A quick look at the documentation will show you that you can configure
will_paginate(@collection) as
will_paginate(@collection, :inner_window => 2, :outer_window => 1)
:inner_window is the number of pages to display around the current
page (default: 4)
:outer_window is the number of pages to display around the first and
last page (default: 1)
Andrew Timberlake
http://ramblingsonrails.com
http://MyMvelope.com - The SIMPLE way to manage your savings