Use view helpers in your mailers

12 May 2017 • Tags: railsActionMailer

To be honest, I thought those would be loaded automatically, knowing how much Rails does automagically. But no, this is what you have to do:

class ApplicationMailer < ActionMailer::Base
  add_template_helper(MarkdownHelper)
end