Need help with bootstrap-will_paginate?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

201 Stars 41 Forks MIT License 41 Commits 13 Opened issues


Format will_paginate html to match Twitter Bootstrap styling

Services available


Need anything else?

Contributors list

I haven't used this gem in years and I don't have the time to keep it updated. Happy to give it to someone actively using it.

Will Paginate link renderer styles for Twitter Bootstrap 3/4

Rails Engine that extends will_paginate stylings to match the pagination styling conventions in Twitter's Bootstrap toolkit.

The real hard work done on the renderer initializer was written by Isaac Bowen.

Demo picture

Demo of boostrap-will_paginate


Add to your Gemfile:

gem 'bootstrap-will_paginate'


Just like you would in the regular will_paginate. If you've got a need to use the default will_paginate stylings, pass an option like so:

 WillPaginate::ActionView::LinkRenderer) %>

To use Bootstrap 4 version:

 WillPaginate::ActionView::Bootstrap4LinkRenderer) %>

Size and Alignment of the Pagination Component

You can easily change the pagination components' appearance by passing the correct Bootstrap classes as options:

Sizing(Bootstrap 3 & 4): Add

for additional sizes.
 WillPaginate::ActionView::Bootstrap4LinkRenderer, class: 'pagination-lg') %>

Alignment (Bootstrap 4 only): Change the alignment of pagination components using Boostrap 4 Flexbox utilities

 WillPaginate::ActionView::Bootstrap4LinkRenderer, class: 'justify-content-center') %>

Copyright (c) 2017 Nicholas Fine, Isaac Bowen released under the MIT license

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.