kaminari-sinatra is a Kaminari paginator’s adapter gem for Sinatra and Sinatra-based frameworks.
Add this line to your Sinatra app’s Gemfile:
Bundling this gem just enables model-side features, such as Model#page and Model#per. If you want to use view helpers, please explicitly register helpers in your Sinatra or Padrino app:
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.
Pull requests are welcome on GitHub at https://github.com/kaminari/kaminari-sinatra.
The gem is available as open source under the terms of the MIT License.