I am using the following with an embedded ruby tag to call the logged in users email address so it will populate the 'to' field when it opens the email client.
<h4 align="center">
<%= link_to "Click to arrange swap",
"mailto:#{@article.user.email}", class: "btn btn-xs btn-primary"%>
</h4>
But, I would like to add a subject (article.artist
) to the email, and the URL of the page in the body of the email.
Anyone any ideas.
Thanks in advance.