although this is an old question, I thought I would add to it if someone stumbles upon it. I'm not sure if this is a new addition, since the question was originally asked, but if so, then a (more modern) approach is simpler.
in the config/initializers/devise.rb there is the following code block:
# ==> Scopes configuration # Turn scoped views on. Before rendering "sessions/new", it will first check for # "users/sessions/new". It turned off by default because it slower if you # are using only default views. # config.scoped_views = false
uncommenting config.scoped_views = false and changing its value to true , the program will automatically check if the user view exists, and if so, then this is necessary. As they say, this adds some overhead to the application, but in my experience this is still minimal.
DazBaldwin Mar 24 '13 at 17:23 2013-03-24 17:23
source share