Reputation: 1991
in my body of my email sending through rails I put the following:
send_email.text.erb
<%= @greeting %>,
Click on this link: <%= link_to 'Accept Items', @url %>,
When I receive the email I see the following:
Hi,
Click on this link: <a href="http://example.com/bla"> Accept Items </a>
How can I display the link instead showing the html tag?
Upvotes: 0
Views: 134
Reputation: 36860
change the name of the file
Instead of a text file send_email.text.erb
make it html as in send_email.html.erb
Upvotes: 2