Rails 3 pagination, will_paginate vs. Kaminari

Kaminari Rocks if you are using rails 3+ , I like to use it because

  1. It is latest library and supports rails 3+ powerfully.
  2. ‘Kaminari’ is Easy to use and it supports ajax very easily.
  3. Paginate pure Object way.
  4. It works as a proxy on AREL, no specific paginate method overloaded on ActiveRecord
  5. Does not pollute the Array or Hash object
  6. More standard rails support for other view formats, most important mobile

    User.page(7).per(50)
    

    But if you are using rails 2.3 etc. keep stick with will_paginate that also works with rails 3 +, but internally its not such perfect as Kaminari code.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)