https://github.com/kaminari/kaminari-sinatra
Kaminari Sinatra adapter
https://github.com/kaminari/kaminari-sinatra
kaminari kaminari-sinatra pagination sinatra
Last synced: 8 months ago
JSON representation
Kaminari Sinatra adapter
- Host: GitHub
- URL: https://github.com/kaminari/kaminari-sinatra
- Owner: kaminari
- License: mit
- Created: 2014-09-08T04:00:40.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2021-05-25T03:38:58.000Z (over 4 years ago)
- Last Synced: 2025-04-12T13:09:26.999Z (8 months ago)
- Topics: kaminari, kaminari-sinatra, pagination, sinatra
- Language: Ruby
- Homepage:
- Size: 555 KB
- Stars: 27
- Watchers: 6
- Forks: 11
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/kaminari/kaminari/tree/master/kaminari-activerecord) for example.
## Installation
Add this line to your Sinatra app's Gemfile:
```ruby
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](http://opensource.org/licenses/MIT).