https://github.com/bootstrap-ruby/will_paginate-bootstrap
Integrates the Twitter Bootstrap pagination component with will_paginate
https://github.com/bootstrap-ruby/will_paginate-bootstrap
Last synced: 8 months ago
JSON representation
Integrates the Twitter Bootstrap pagination component with will_paginate
- Host: GitHub
- URL: https://github.com/bootstrap-ruby/will_paginate-bootstrap
- Owner: bootstrap-ruby
- License: mit
- Created: 2012-03-06T07:19:51.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2018-09-24T10:29:25.000Z (over 7 years ago)
- Last Synced: 2025-05-14T17:14:57.398Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 58.6 KB
- Stars: 388
- Watchers: 16
- Forks: 160
- Open Issues: 17
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
# will_paginate-bootstrap
---
__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.
---
[](https://codeclimate.com/github/bootstrap-ruby/will_paginate-bootstrap)

This gem integrates the [Twitter Bootstrap](http://getbootstrap.com/) [pagination component](http://getbootstrap.com/components/#pagination) with the [will_paginate](https://github.com/mislav/will_paginate) pagination gem.
Just like will_paginate, Rails and Sinatra are supported.
## Install
* `gem install will_paginate-bootstrap`, *or*
* For projects using Bundler, add `gem 'will_paginate-bootstrap'` to your `Gemfile` (and then run `bundle install`).
## Usage
### Rails
1. Load the Bootstrap CSS in your template.
2. In your view, use the `renderer: BootstrapPagination::Rails` option with the `will_paginate` helper, for example:
```ruby
<%= will_paginate @collection, renderer: BootstrapPagination::Rails %>
```
### Sinatra
1. Load the Bootstrap CSS in your template.
2. `require "will_paginate-bootstrap"` in your Sinatra app.
3. In your view, use the `renderer: BootstrapPagination::Sinatra` option with the `will_paginate` helper, for example:
```ruby
<%= will_paginate @collection, renderer: BootstrapPagination::Sinatra %>
```
## Compatibility
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.