Omer Aslam Omer Aslam - 8 days ago 6
Ruby Question

Active Admin: wrong number of arguments (0 for 1)

I am using activeadmin version: 1.0.0.pre 168d72e
It is working fine in development But got following error on heroku.


app[web.1]:
ActionView::Template::Error (wrong number of arguments (0 for 1)):

app[web.1]: 1: insert_tag renderer_for(:index)

app[web.1]: vendor/bundle/ruby/2.1.0/gems/will_paginate-3.0.7/lib/will_paginate/active_record.rb:149:in `select_for_count' 2


Same issue listed here:

Please help me to resolve the issue

Answer

I had the same problem, its because ActiveAdmin uses Kaminari instead of will_paginate. In the end, I switched to Kaminari, because it seemed to be better, and its still improving.

However, there is note about compatibility here: ActiveAdmin installation notes