efied / will_paginate-bootstrap

Integrates the Twitter Bootstrap pagination component with will_paginate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

will_paginate-bootstrap

Bootstrap Pagination Component

This gem integrates the Twitter Bootstrap pagination component with the will_paginate pagination gem.

As with will_paginate itself, Rails and Sinatra are supported.

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:

<%= will_paginate @collection, :renderer => BootstrapPagination::Rails %>

Sinatra

  1. Load the Bootstrap CSS in your template.
  2. In your view, use the :renderer => BootstrapPagination::Sinatra option with the will_paginate helper, for example:

<%= will_paginate @collection, :renderer => BootstrapPagination::Sinatra %>

Compatibility

Ruby >= 1.9.2
will_paginate >= 3.0.3
Bootstrap >= 2.0.0

About

Integrates the Twitter Bootstrap pagination component with will_paginate

License:MIT License