Sha256: 7d69067e8a7001008c7c79ebb5e109b1fcd72bef9d6c7f6756d1365fcd93b799

Contents?: true

Size: 1.86 KB

Versions: 1

Compression:

Stored size: 1.86 KB

Contents

# 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

## 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)


[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/acrogenesis/will_paginate-foundation/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
will_paginate-foundation-5.3.3 README.markdown