RailsCasts Pro episodes are now free!

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]