I am trying to override the action of the ActiveAdmin controller index so that it displays the results for current_user instead of all the results.
controller do def index @user_tasks = UserTask.where(:user_id => current_user.id).page(params[:page]) end end
When accessing ActiveAdmin, the exception is:
ActionView::Template::Error (undefined method `base' for nil:NilClass): 1: render renderer_for(:index)
I am using rails 3.1 and the latest version of ActiveAdmin. gem "activeadmin", :git => 'https://github.com/gregbell/active_admin.git' .
source share