Rails 4 + Devise 3.0 - Authenticate using username and email
问题 I'm trying to allow users to sign in with either their username or their email address. as per here: https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address When ever I try to sign in with either the email or the login this is logged: Started POST "/users/sign_in" for 192.168.2.8 at 2013-11-22 10:11:50 +0800 Processing by Devise::SessionsController#create as HTML Parameters: {"utf8"=>"â", "authenticity_token"=>