Rails: activeadmin, undefined method `per' for #

后端 未结 8 1334
暖寄归人
暖寄归人 2021-02-02 18:15

I installed ActiveAdmin successfully:

My gemfile code:

source \'https://rubygems.org\'

 gem \'rails\', \'3.2.10\'

 # Bundle edge Rails instead:
         


        
8条回答
  •  佛祖请我去吃肉
    2021-02-02 18:49

    You can create an Initializer for Kaminari, like this:

    Kaminari.configure do |config|
      config.page_method_name = :per_page_kaminari
    end
    

    In my experience, I had to restart the server to make it work. That's all.

提交回复
热议问题