You don't have an admin variable to access, you need to check what the parameter is that you are being given.
You should also not redirect inside this method, it should only return a path that devise can use.
rails g active_admin:install
Damn, this probably just saved me hours and hours of head-scratching. Thanks a lot!