6

如何从我的 rails 应用程序中的电子邮件模板访问 time_ago_in_words?

4

1 回答 1

9

You can use

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

to include date helper.

于 2010-05-11T06:41:47.757 回答