Master ruby with us

Posts Tagged ‘actionmailer’

Call Helper method from ActionMailer views in Ruby on Rails application

Posted by firstruby on February 2, 2011

If you want to call helper method from ActionMailer view in Ruby on Rails (RoR) application, you need to include helper (module) in Mailer file as,

If Helper module name is “UserHelper”, then need to write following in Mailer file,


After this, you will be able to access all the methods written in UserHelper in ActionMailer views.

Hope this is helpful.


Posted in Useful Links | Tagged: , , , | Leave a Comment »