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
authorize! :view, :all
Found the solution here