No commit activity in last 3 years
No release in over 3 years
This gem integrates the Foundation pagination component with the will_paginate pagination gem. Supports Rails and Sinatra
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

will_paginate-foundation

Gem Version

Foundation Pagination Component

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 your Gemfile (and then run bundle install).

Usage

Rails

  1. Load the Foundation CSS in your template.
  2. In your view, use the renderer: FoundationPagination::Rails option with the will_paginate helper, for example:
<%= will_paginate @collection, renderer: FoundationPagination::Rails %>

Sinatra

  1. Load the Foundation CSS in your template.
  2. require "will_paginate-foundation" in your Sinatra app.
  3. In your view, use the renderer: FoundationPagination::Sinatra option with the will_paginate helper, for example:
<%= will_paginate @collection, renderer: FoundationPagination::Sinatra %>

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_markup)
  3. Commit your changes (git commit -am "Cool new feature")
  4. Push to the branch (git push origin my_markup)
  5. Open a [Pull Request][1]
  6. 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)