will_paginate-foundation
This gem integrates the Foundation pagination component with the will_paginate pagination gem.
Supports Foundation 3, 4, 5, 6
Install
-
gem install will_paginate-foundation
, or - For projects using Bundler, add
gem 'will_paginate-foundation'
to yourGemfile
(and then runbundle install
).
Usage
Rails
- Load the Foundation CSS in your template.
- In your view, use the
renderer: FoundationPagination::Rails
option with thewill_paginate
helper, for example:
<%= will_paginate @collection, renderer: FoundationPagination::Rails %>
Sinatra
- Load the Foundation CSS in your template.
-
require "will_paginate-foundation"
in your Sinatra app. - In your view, use the
renderer: FoundationPagination::Sinatra
option with thewill_paginate
helper, for example:
<%= will_paginate @collection, renderer: FoundationPagination::Sinatra %>
Contributing
- Fork it.
- Create a branch (
git checkout -b my_markup
) - Commit your changes (
git commit -am "Cool new feature"
) - Push to the branch (
git push origin my_markup
) - Open a [Pull Request][1]
- Enjoy a refreshing 'Insert Favorite Beverage' and wait
Special Thanks
This gem code was based on https://github.com/nickpad/will_paginate-bootstrap
License
The MIT License (MIT)