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

Already on GitHub? Sign in to your account

undefined local variable or method `current_user' #606

fenelon opened this Issue Apr 20, 2012 · 1 comment


None yet
1 participant

fenelon commented Apr 20, 2012

My Devise model is called AdminUser as I'm using ActiveAdmin in my project. I've installed CanCan display the prelaunch page to everyone, except admins and testers and I wanted to restrict access to ActiveAdmin to only admins.

That is what I'm getting in my HomeController

undefined local variable or method `current_user' for #<HomeController:0x007fa941be1328>

The code produces it is

before_filter :check_permissions

def check_permissions
    authorize! :view, :all

@fenelon fenelon closed this Apr 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment