How do I access time_ago_in_words from the email template in my rails app?
You can use
def YourNotifierClass < ActionMailer::Base
include ActionView::Helpers::DateHelper
...
end
to include date helper.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With