This gem integrates the Pure paginator control with the will_paginate pagination gem.
Just like will_paginate, Rails and Sinatra are supported.
Thanks to will_paginate-bootstrap.
gem install will_paginate-purecss
, or- For projects using Bundler, add
gem 'will_paginate-purecss'
to yourGemfile
(and then runbundle install
).
- Load the Pure CSS in your template.
- In your view, use the
renderer: PurecssPagination::Rails
option with thewill_paginate
helper, for example:
<%= will_paginate @collection, renderer: PurecssPagination::Rails %>
- Load the Pure CSS in your template.
require "will_paginate-purecss"
in your Sinatra app.- In your view, use the
renderer: PurecssPagination::Sinatra
option with thewill_paginate
helper, for example:
<%= will_paginate @collection, renderer: PurecssPagination::Sinatra %>
Ruby | >= 1.9.2 |
---|---|
will_paginate | >= 3.0.3 |
Pure | >= 0.5.0 |
MIT-License