Skip to content
Kaminari Sinatra adapter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
gemfiles
lib/kaminari
test
.gitignore
.travis.yml
Gemfile
MIT-LICENSE
README.md
Rakefile
kaminari-sinatra.gemspec

README.md

Kaminari::Sinatra

kaminari-sinatra is a Kaminari paginator's adapter gem for Sinatra and Sinatra-based frameworks.

Note that this gem does not contain model-side features, such as Model#page and Model#per. They are contained in gems for each ORM, kaminari-activerecord for example.

Installation

Add this line to your Sinatra app's Gemfile:

gem 'kaminari-sinatra'

And bundle.

Usage

register view helpers in your Sinatra or Padrino app:

register Kaminari::Helpers::SinatraHelpers

Or, you can implement your own awesome helper :)

More features are coming, and again, this is still experimental. Please let us know if you found anything wrong with the Sinatra support.

Contributing

Pull requests are welcome on GitHub at https://github.com/kaminari/kaminari-sinatra.

License

The gem is available as open source under the terms of the MIT License.

You can’t perform that action at this time.