views:

38

answers:

1

How do I access time_ago_in_words from the email template in my rails app?

+2  A: 

You can use

def YourNotifierClass < ActionMailer::Base
  include ActionView::Helpers::DateHelper
  ...
end

to include date helper.

dombesz