Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

My custom devise views aren't displaying

I created the /views/user/ folder using rails g devise:views but devise is still using the default views somehow.

Am I missing a configuration somewhere?

like image 443
Joseph Le Brech Avatar asked Dec 03 '22 04:12

Joseph Le Brech


1 Answers

Yes, read documentation and add to your config/initializers/devise.rb

config.scoped_views = true

Also see that rails g devise:views create app/views/devise containing all needed views. If you don't have many Devise Models in your app DO NOT use above solution but simply edit files in app/views/devise. Then it will work faster, because it don't need to look every time for specified views.

like image 72
Hauleth Avatar answered Dec 26 '22 01:12

Hauleth