On Thu, May 28, 2009 at 12:01 PM, fRAnKEnSTEin <[email protected]> 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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

