Setting root page to activeAdmin default login page

前端 未结 2 1614
走了就别回头了
走了就别回头了 2020-12-29 21:39

Im having dificulty in setting the root page in may Rails app to the default login page of the Active Admin gems, at localhost:3000/admin/login. Here\'s my routes.rb:

2条回答
  •  甜味超标
    2020-12-29 21:51

    Tell rails you want the default root to go to the admin namespace, dashboard controller, index action:

    root to: "admin/dashboard#index"
    

提交回复
热议问题