different layout for sign_in action in devise

后端 未结 8 2179
情深已故
情深已故 2020-12-02 05:12

I\'m trying to use a different/custom layout named \"devise\" for the sign_in action. I found this page in the devise wiki, and the second example even says you can do it pe

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-02 05:31

    The by far simplest solution is to just create a layout called devise.html.haml in your app/views/layouts folder. and the Rails magic takes care of the rest.

    app/views/layouts/devise.html.haml
    

提交回复
热议问题