mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
parent
e2df2efa6b
commit
efd806a7a7
1 changed files with 6 additions and 0 deletions
|
@ -273,6 +273,12 @@ or edit gemfile:
|
|||
|
||||
gem 'kaminari', :require => 'kaminari/sinatra'
|
||||
|
||||
This line 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:
|
||||
|
||||
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.
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue