Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Lee Reilly's Profile

GitHub User: leereilly

Site: http://www.leereilly.net

Comments by Lee Reilly

Avatar

Try replacing it with the following:

ruby
# user.username_attribute_name = :email
user.username_attribute_names = [:email]