Sha256: 2305104fec6e08da2beb9430d091b331941b87c42fe6ca744e87b3eb3678ae3a

Contents?: true

Size: 1.07 KB

Versions: 2

Compression:

Stored size: 1.07 KB

Contents

# SunspotKaminariSupport

Add methods required for Kaminari helper methods (ex:
helper.paginate(result))

## Installation

Add this line to your application's Gemfile:

    gem 'sunspot_kaminari_support'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install sunspot_kaminari_support

## Usage

Gem includes module with helper method into Sunspot::Search::AbstractSearch.
So now you are able to use solr results in kaminari helpers:

    @result = Post.solr_search{}
    paginate(@result)          # This would output several pagination links such as « First ‹ Prev ... 2 3 4 5 6 7 8 9 10 ... Next › Last »
    page_entries_info(@result) # This renders a helpful message with numbers of displayed vs. total entries.

See [kaminari](https://github.com/amatsuda/kaminari) page for detailed explanation of these helpers usage

## Contributing

1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sunspot_kaminari_support-0.0.2 README.md
sunspot_kaminari_support-0.0.1 README.md