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 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