Skip to content


undefined local variable or method `current_user' #606

fenelon opened this Issue · 1 comment

1 participant


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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.