Joined December 2013
·

Leo

Brazil
·
·

Hi,

I'm trying to implement this tutorial along the app I created following The Rails Tutorial by Michael Hartl however I'm getting an error when I try to join both codes in my create action. This is the part of my session controller which is currently giving a error:

def create
user = User.findby(email: params[:session][:email].downcase) || User.fromomniauth(env["omniauth.auth"])

Any suggestions on how can I manage to solve this problem?
Thanks!

Achievements
29 Karma
0 Total ProTip Views