The devise gem spec reads
s.add_dependency("railties", ">= 4.1.0", "< 5.1")
Now that Rails 5.1 is out, a bundle install of a Rails 5.1 app installs Devise 1.5.4 instead of the current version.
Same problem here.
@noelrappin maybe my fix?
Looks like #4444 will fix it.
There is a more up to date PR https://github.com/plataformatec/devise/pull/4512 that should fix this issue
Can you try the master branch? It should be fixed there.
Most helpful comment
Looks like #4444 will fix it.