Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Kevin Curtin's Profile

GitHub User: kcurtin

Site: www.kevinjcurtin.com

Comments by Kevin Curtin

Avatar

I was getting an error and the emails weren't being sent when I was submitting the form after filling in my email address. I had to make a change to this code below:


def password_reset(user)
@user = user
mail :to => user.email, :subject => "Password Reset"
end

I had to change

user.email

to

@user.email