Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `current_user' for #<Admin::DashboardController:0xade7434> #674

Closed
kissvs2011 opened this issue Oct 25, 2011 · 2 comments

Comments

@kissvs2011
Copy link

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'

@macfanatic
Copy link
Contributor

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.

@jpmckinney
Copy link
Contributor

macfanatic is probably right, and dashboards are deprecated. close issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants