Devise within namespace

后端 未结 6 566
慢半拍i
慢半拍i 2021-01-30 03:22

I\'m trying to split my rails project in a front-end for regular users and a back-end for admins. Therefore i have created a namespace \'admin\' so that i can easily control adm

6条回答
  •  悲&欢浪女
    2021-01-30 03:54

    In addition to the first solution of the answer of iain i had to generate views of devise or else it throws a template missing exception.

    generate views with

    rails g devise_views
    

    The views will be located in views>devise. Move the created map 'sessions' to the map views>admin

提交回复
热议问题