So I have this string:
"<p> Here it is: </p> <p> <a href="http://localhost:3000/" class="button">Open</a> </p>"
This string is generated inside the controller, depending on several parameters.
I want to be able to show this string in a view, interpreted as markup text:
<div class="row">
<div class="twelve columns panel">
<%= @string_with_markup %>
</div>
</div>
But the result is that, not surprisingly, the string is displayed, as is, so it shows a bunch of markup text in the rendered page. I though of render_to_string or yield methods, but its not working, I think I'm missing something.
Additional info:
The whole purpose is to show the body of an email sent by the system. The emails are generated with ActionMailer, and when the user wants to see an email that was sent to him, the controller calls ActionMailer's appropriate method, and extracts the body of the email. That string_with_markup I talked about is in fact of class: Mail::Body
Thanks!