This gem integrates the Foundation pagination component with the will_paginate pagination gem.
gem install will_paginate-foundation, or- For projects using Bundler, add
gem 'will_paginate-foundation'to yourGemfile(and then runbundle install).
- Load the Foundation CSS in your template.
- In your view, use the
renderer: FoundationPagination::Railsoption with thewill_paginatehelper, for example:
<%= will_paginate @collection, renderer: FoundationPagination::Rails %>- Load the Foundation CSS in your template.
require "will_paginate-foundation"in your Sinatra app.- In your view, use the
renderer: FoundationPagination::Sinatraoption with thewill_paginatehelper, for example:
<%= will_paginate @collection, renderer: FoundationPagination::Sinatra %>- 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
This gem code was based on https://github.com/nickpad/will_paginate-bootstrap
The MIT License (MIT)

