Using a partial in mailerb template returns 'unsafe' html #1

stayhero opened this Issue Aug 14, 2011 · 0 comments


None yet
2 participants

When I try to use a partial in an email template, the html entities of the returned content gets escaped.

Example: user_welcome.markerb


thanks for signup. Bla Bla..

<%= render :partial => 'userinfo' %>

To return proper html I need to use

<%= raw render :partial => 'userinfo' %>.

Should markerb always return html_safe content?

josevalim closed this in 6cd3e54 Oct 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment