Active Admin authentication conflicting with User authentication

后端 未结 4 1320
你的背包
你的背包 2021-01-02 03:07

Active Admin is a gem used for having an admin dashboard in your application. It uses Devise for logging in users and creates a separate admin_user model for th

4条回答
  •  有刺的猬
    2021-01-02 03:51

    Why are you using the get "/"? You should remove it. I'm using a definition pretty similar to yours and works fine with me. Use just:

    root :to => 'users#dashboard', :constraints => lambda {|r| r.env["warden"].authenticate? }
    root :to => 'home#index'
    

提交回复
热议问题