Need to update kaminari to 0.15.1 #4714

Closed
zedalaye opened this Issue Jan 20, 2014 · 5 comments

Projects

None yet

5 participants

@zedalaye

rails_admin requires kaminari to paginate data but kaminari and will_paginate don't play very well when used within the same project.

This seems to be fixed in kaminari 0.15.1

Otherwise it's impossible to browse paginated pages in rails_admin and you get these errors in log files :

Processing by RailsAdmin::MainController#index as HTML
  Parameters: {"_pjax"=>"[data-pjax-container]", "model_name"=>"account_deletion"}
Completed 500 Internal Server Error in 19.6ms

NoMethodError (undefined method `per_page_kaminari' for []:ActiveRecord::Relation):
  lib/rack/chrome_frame.rb:39:in `call'


Started GET "/admin_panel/account_deletion" for 192.168.57.104 at 2014-01-20 16:41:42 +0100
Processing by RailsAdmin::MainController#index as HTML
  Parameters: {"model_name"=>"account_deletion"}
Completed 500 Internal Server Error in 13.8ms

NoMethodError (undefined method `per_page_kaminari' for []:ActiveRecord::Relation):
  lib/rack/chrome_frame.rb:39:in `call'
$ bundle update kaminari # && restart diaspora

did the trick for me.

@Ruxton
Ruxton commented Jan 21, 2014

I'd love to get rid of will_paginate in favour of kaminari

This was referenced Jan 22, 2014
@fabianrbz

kaminari updated!
Thanks!

@fabianrbz fabianrbz closed this Feb 2, 2014
@goobertron

Is it worth posting this tip: $ bundle update kaminari # && restart diaspora via the Diaspora HQ account for any podmins who haven't seen this issue? I can do this if so.

@Flaburgan
Collaborator

@goobertron the update will come automatically with the next release

@goobertron

I realise that, @Flaburgan, but it has become apparent today that podmins have been experiencing problems related to kaminari, and not knowing that they need to bump it. See this post for an example. If we tell them about bumping it, they could solve some of their problems now rather than having to wait until the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment