mirror of
https://github.com/kaminari/kaminari.git
synced 2022-11-09 13:44:37 -05:00
readme for sinatra
This commit is contained in:
parent
ef1e813154
commit
be8344d314
1 changed files with 13 additions and 0 deletions
13
README.rdoc
13
README.rdoc
|
@ -217,6 +217,19 @@ Because the `page` parameter is now a URL segment, we can leverage on Rails page
|
|||
|
||||
NOTE: In this example, I've pointed the route to my `:index` action. You may have defined a custom pagination action in your controller - you should point `:action => :your_custom_action` instead.
|
||||
|
||||
== Sinatra/Padrino supports
|
||||
|
||||
After December 2011, kaminari started to support Sinatra or Sinatra-based frameworks experimentally.
|
||||
|
||||
To use kaminari and its helpers with these frameworks, please just
|
||||
|
||||
require 'kaminari/sinatra'
|
||||
|
||||
or edit gemfile:
|
||||
|
||||
gem 'kaminari', :require => 'kaminari/sinatra'
|
||||
|
||||
More features are coming, and please raise an issue[https://github.com/amatsuda/kaminari/issues] if something would be occurred around Sinatra.
|
||||
|
||||
== For more information
|
||||
|
||||
|
|
Loading…
Reference in a new issue