From 0585be11e44b554f789d2558fe5b77bbbd3be4da Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Tue, 13 Dec 2011 21:51:54 +0900 Subject: [PATCH] show CI status --- README.rdoc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.rdoc b/README.rdoc index b856cfa..038d7bb 100644 --- a/README.rdoc +++ b/README.rdoc @@ -203,6 +203,7 @@ However, the paginate helper doesn't automatically handle your Array ob Kaminari::paginate_array method converts your Array object into a paginatable Array that accepts page method. Kaminari.paginate_array(my_array_object).page(params[:page]).per(10) + == Creating friendly URLs and caching Because of the `page` parameter and Rails 3 routing, you can easily generate SEO and user-friendly URLs. For any resource you'd like to paginate, just add the following to your `routes.rb`: @@ -217,6 +218,7 @@ 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. @@ -231,12 +233,16 @@ or edit gemfile: 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 Check out Kaminari recipes on the GitHub Wiki for more advanced tips and techniques. https://github.com/amatsuda/kaminari/wiki/Kaminari-recipes +== Build Status {}[http://travis-ci.org/amatsuda/kaminari] + + == Questions, Feedback Feel free to message me on Github (amatsuda) or Twitter (@a_matsuda) ☇☇☇ :)