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

Closed
stayhero opened this Issue Aug 14, 2011 · 0 comments

Comments

Projects
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

Hello @user.name,

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