I have a html.erb file used for an email template. Is there any way to include a helper module and use it's methods within this file? Something like:
a mails_helper.rb
file:
module MailsHelper
def mail_to
"foo"
end
end
and in mail_template.html.erb
:
<% include MailsHelper %>
<h2> This mail was sent to: <%= mail_to %> </h2>