Reputation: 699
I have a helper defined in my application_helper.rb that I would like to use in my mailer view, but just doing
<%= helper_method(param) %>
in the mailer_view.html.erb file gets me an 'undefined method' error.
Is there another way to do this? I would hate to have to put the same helper somewhere else.
Thanks.
Upvotes: 5
Views: 2463