David Kimura PRO said almost 6 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