David Kimura PRO said over 5 years ago on Templating Ruby on Rails Applications :
I've entered an issue on Github regarding this issue. It is definitely unexpected behavior. However, I don't know how critical it is since there is a workaround. https://github.com/plataformatec/devise/issues/4992