I’m using rails 3 and devise for authentication.
Translating my mailer templates to anything but the devise default results in html escaping. A particular consequence of this is the confirmation of new account email includes an invalid confirmation token.
<p><a href=3D"http://localhost:3000/users/confirmation?confirmation_token=
=3D88uo7jetcetc">Confirma=
r mi cuenta</a></p>
The preceding 3d is html escaping and should not be there. Using raw and html_safe has no consequence on the output.
Ok if anyone comes across this, here’s how I solved it.
If the mailer template included any non english characters, the whole template is escaped. There doesn’t seem any way to work around this other than to escape all such characters before rails does.
eg:
needs be