Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limiting number of pages in links using will_paginate #47

Open
poombavai opened this issue Mar 19, 2016 · 1 comment
Open

Limiting number of pages in links using will_paginate #47

poombavai opened this issue Mar 19, 2016 · 1 comment

Comments

@poombavai
Copy link

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?

@diegocasmo
Copy link

This did it for me (using haml):

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants