I used the instructions here: "
https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign_in-using-their-username-or-email-address" to set up username and email address login.
This used to work fine.
Now I'm using the latest git master of devise and it won't let me log in with a username. Seems like some javascript is blocking it: I get a tooltip on the login input field saying "Please enter an email address".
But I can't find it anywhere!
$ [/tmp/devise]
➜ git status
# On branch master
nothing to commit (working directory clean)
$ [/tmp/devise]
➜ grep -r "Please enter" *
$ [/tmp/devise]
The model works fine:
ruby-1.9.2-p180 :003 > User.find_for_database_authentication(:login => "username")
#<User:0xb592a58> {
:id => 1,
:email => "...
What gives?