Use helper functions in you email view
Posted by Sandro Paganotti in
Ruby on Rails -
comments are closed
As I found on this technoweenie post there is an undocumented function that let you use your helpers while styling your emails.
The sintax is pretty simple and must be added to your ActionMailer model:
class Emailer < ActionMailer::Base
helper :application
...
end
After this you will be able to use the functions avaiable in the named helper into your email templates. Easy isn’t it?
Sandro


Comments
Joycie
Posted on September 30
prasad
Posted on October 03