Customizing Number of Page Links Rendered With will_paginate? Customizing Number of Page Links Rendered With will_paginate? ruby-on-rails ruby-on-rails

Customizing Number of Page Links Rendered With will_paginate?


Use the :inner_window option:

<%= will_paginate stuff, :inner_window => 2 %>

You can see all the options right here.