Integrates the Twitter Bootstrap pagination component with will_paginate
No longer maintained
I’m no longer using Bootstrap with Rails, so unfortunately am no longer accepting pull requests or maintaining this library. Feel free to fork this repository in order to publish your changes, or get in touch with me if you’d like to take over maintenance of the gem.
This gem integrates the Twitter Bootstrap pagination component with the will_paginate pagination gem.
Just like will_paginate, Rails and Sinatra are supported.
gem install will_paginate-bootstrap
, orgem 'will_paginate-bootstrap'
to your Gemfile
(and then run bundle install
).renderer: BootstrapPagination::Rails
option with the will_paginate
helper, for example:<%= will_paginate @collection, renderer: BootstrapPagination::Rails %>
require "will_paginate-bootstrap"
in your Sinatra app.renderer: BootstrapPagination::Sinatra
option with the will_paginate
helper, for example:<%= will_paginate @collection, renderer: BootstrapPagination::Sinatra %>
Starting at version 1.0, this gem no longer supports Bootstrap 2.
Ruby | >= 1.9.2 |
---|---|
will_paginate | >= 3.0.3 |
Twitter Bootstrap | >= 3.0.0 |
Bootstrap 2 users can use version 0.2.5
of the gem which was the last version to offer Bootstrap 2 support.