config.scoped_views = true
namespace :actors do
devise_for :account, :class_name => 'Actor', :module => 'devise'
I have the installed devise views in the directory app/views/actors/account/. However, Devise does not find these views. When I move them to the directory app/views/actors_account/ then Devise finds these views.
The problem is that Devise::Controllers::ScopedViews#render_with_scope tries first with devise_mapping.plural, which returns :actors_account. I would expect Devise to try first with 'actors/account' rather than :actors_account, because I would expect to the views to belong in app/views/actors/account.
Ensure namespaces has proper scoped views, closed by d8016ea
Thank you Jose!
Has this change been reverted since then? I'm still having this issue with the following routes:
namespace :customer do
devise_for :customer_users, :module => 'devise'
Devise looks for templates in app/views/customer_customer_users rather than in app/view/customer/customer_users.
I've solved this temporarily with this monkeypatch https://gist.github.com/837658 (changed devise_mapping.plural to devise_mapping.fullpath).
Ensure namespaces has proper scoped views, closes #654