Getting unauthorized with Devise & Rails Admin -


i'm trying setup rails_admin devise in order force authentication go admin panel i'm getting unauthorized messages , being redirected login page.

i've done kind of integration between devise , rails_admin before , didn't have problem time i'm getting lot of troubles it. idea of might happening?

thanks in advance

  config.authenticate_with     warden.authenticate! scope: :user   end   config.current_user_method(&:current_user) 

i had same problem. changing session_store key fixed problem me.

# config/initializers/session_store.rb # sure restart server when modify file.  rails.application.config.session_store :cookie_store, key: '_changed_key_session' 

this comment helped me find solution : https://github.com/activeadmin/activeadmin/issues/2957#issuecomment-49748165.