As I understand it, active_admin no longer supports will_paginate. But if you do not want to rewrite your pagination in Kaminari, you can fix this problem by adding some code to the initializers.
# config/initializers/will_paginate.rb if defined?(WillPaginate) module WillPaginate module ActiveRecord module RelationMethods alias_method :per, :per_page alias_method :num_pages, :total_pages end end end end module ActiveRecord class Relation alias_method :total_count, :count end end
jizak source share