开发者

How do I change default Devise views paths?

开发者 https://www.devze.com 2023-02-15 16:59 出处:网络
I am developing a Rails project with Devise. By default all Devise views go to app/views/devise/... I would like instead, to have them in /app/views/users/... like:

I am developing a Rails project with Devise. By default all Devise views go to app/views/devise/... I would like instead, to have them in /app/views/users/... like:

  • app/views/users/sessions
  • app/views/users/registration
  • etc.

I got as far as rails generate devise:views users, but there is also some cod开发者_如何学Ce change involved.

I don't want to change the controllers. I just want to have views in a different directory than the default one.


I think without changing the controller you cant change the default folder for devise views. I suggest if you want to have different views then just make your changes in devise views.

0

精彩评论

暂无评论...
验证码 换一张
取 消