Setting root page to activeAdmin default login page

前端 未结 2 1612
走了就别回头了
走了就别回头了 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:56

    You can edit the Active Admin config file: config/initializers/active_admin.rb

    config.root_to = 'admin/dashboard#index'
    

提交回复
热议问题