change number of pages in paging

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