Rails: activeadmin, undefined method `per' for #

后端 未结 8 1304
暖寄归人
暖寄归人 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:33

    I had the same issue and switched from WillPaginate to Kaminari for my app.

    It is a simple change: paginate(page:1,per_page:10) becomes page(1).per(10)

    I guess it depends how deeply willPaginate is enmeshed with your app.

提交回复
热议问题