I was able to solve this by accessing the password in the view by doing this:
<%= @resource.password %>
This means there isn't a need to call the mailer method manually and pass in the password.
I was able to solve this by accessing the password in the view by doing this:
<%= @resource.password %>
This means there isn't a need to call the mailer method manually and pass in the password.