will_paginate-bootstrap icon indicating copy to clipboard operation
will_paginate-bootstrap copied to clipboard

Limiting number of pages in links using will_paginate

Open poombavai opened this issue 8 years ago • 1 comments

Hi.. I am using the following gems

gem 'will_paginate', '~> 3.0.6' gem 'will_paginate-bootstrap'

:inner_window and outer_window properties doesnot showing me any changes in my page.. I have tried like,

my views,

<%= will_paginate @issue, page_links: true, inner_window: 2, outer_window: 1 %>

my controller,

@issue = Issue.all.paginate(page: params[:page], per_page: 5).order("issue_slip_no DESC") .. How should I correct it?

poombavai avatar Mar 19 '16 05:03 poombavai

This did it for me (using haml):

= will_paginate @articles, renderer: BootstrapPagination::Rails, inner_window: 1, outer_window: 1

diegocasmo avatar Jul 12 '16 20:07 diegocasmo