You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
NameError in Admin/dashboard#index
Showing /home/ruanxx/.rvm/gems/ruby-1.9.2-p180/gems/activeadmin-0.3.1/app/views/active_admin/dashboard/index.html.arb where line #1 raised:
undefined local variable or method `current_user' for #Admin::DashboardController:0xade7434
Not that I'm sure this will help, but have you tried using the ActiveAdmin user helper? Appears from your dump <Admin::DashboardController> that you do have a name pace setup (:admin), so the helper current_user will be of no use to you, while current_admin_user might do the trick. Didn't verify any of that.
NameError in Admin/dashboard#index
Showing /home/ruanxx/.rvm/gems/ruby-1.9.2-p180/gems/activeadmin-0.3.1/app/views/active_admin/dashboard/index.html.arb where line #1 raised:
undefined local variable or method `current_user' for #Admin::DashboardController:0xade7434
Extracted source (around line #1):
1: render view_factory.dashboard_page
app/models/admin_user.rb:18:in `block (2 levels) in class:AdminUser'
The text was updated successfully, but these errors were encountered: