Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acrogenesis/will_paginate-foundation
Integrates the Foundation pagination component with will_paginate
https://github.com/acrogenesis/will_paginate-foundation
Last synced: 18 days ago
JSON representation
Integrates the Foundation pagination component with will_paginate
- Host: GitHub
- URL: https://github.com/acrogenesis/will_paginate-foundation
- Owner: acrogenesis
- License: mit
- Created: 2013-09-27T21:31:35.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T14:07:13.000Z (about 7 years ago)
- Last Synced: 2024-08-10T21:28:53.114Z (3 months ago)
- Language: Ruby
- Size: 38.1 KB
- Stars: 37
- Watchers: 3
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: MIT-LICENSE
Awesome Lists containing this project
README
# will_paginate-foundation
[![Gem Version](https://badge.fury.io/rb/will_paginate-foundation.png)](http://badge.fury.io/rb/will_paginate-foundation)
![Foundation Pagination Component](https://raw.github.com/acrogenesis/will_paginate-foundation/master/pagination.png)
This gem integrates the [Foundation](http://foundation.zurb.com) [pagination component](http://foundation.zurb.com/docs/components/pagination.html) with the [will_paginate](https://github.com/mislav/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:```ruby
<%= 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:```ruby
<%= 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)