Hi all,
I’ve integrated a “reset password” facility on the site I’m developing
allowing the user to reset their password if they forget it. The
problem I am having is that the link to the reset page is not showing
up as a hyperlink.
My User_Mailer looks like this
def forgot_password(user)
setup_email(user)
@subject += 'linkITB - Reset Password'
@body[:url] = "http://localhost:3000/user/reset_password/"#
{user.reset_password_code}"
end
protected
def setup_email(user)
@recipients = “#{user.email}”
@from = “[email protected]”
@subject = "[linkITB.ie] "
@sent_on = Time.now
@body[:user] = user
end
end
My views/ user_mailer is:
Hi <%= @user.user_name %>,
Your password has been reset.
You can now login by using the following link <%= @url %>
Regards,
The linkITB team