D john

Joined

1,210 Experience
12 Lessons Completed
0 Questions Solved

Activity

Posted in Authenticating Blog Admin Pages Discussion

User.where(email: "me@mail.com").first_or_initialize seems to throw an error, - No such method in Active Record.
But
User.first_or_initialize_by(email: "me@mail.com") seems to work :)