Wednesday, 25 November 2015

How to use view helpers in my ActionMailer views?

If you want to use a helper in mailers:

You can just add in your mailer
helper ApplicationHelper
or whatever helper you need
class MyMailer < ApplicationMailer
helper ApplicationHelper
end

1 comment:

  1. Excellent article. Very interesting to read. I really love to read such a nice article. Thanks! keep rocking.
    Ruby on Rails Online Training

    ReplyDelete