Setting root page to activeAdmin default login page

前端 未结 2 1611
走了就别回头了
走了就别回头了 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"
    
    0 讨论(0)
  • 2020-12-29 21:56

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

    config.root_to = 'admin/dashboard#index'
    
    0 讨论(0)
提交回复
热议问题