sighmon / mjml-rails

MJML + ERb/Haml/Slim view template
https://mjml.io
Other
296 stars 64 forks source link

rails mailer previews render as text with mjml tags #44

Closed voordev closed 5 years ago

voordev commented 5 years ago

When making /rails/mailers previews with option for mjml and failback text format rendering. The rendered text/plaintext format emails show the mjml tags and not just the text.

sighmon commented 5 years ago

@voordev do you have any example code or an example repository showing the bug?

DaddyWozBucks commented 5 years ago

@voordev I had the same problem. I managed to solve ti by specifying the layout I was using like so layout 'mailer.html.mjml'. Hope that helps

voordev commented 5 years ago

@DaddyWozBucks I Currently use

layout "mailer" Does specifying the full filename to the layout file works but like my example not?