3
如何從我的rails應用程序的電子郵件模板中訪問time_ago_in_words?在ActionMailer模板中使用time_ago_in_words
如何從我的rails應用程序的電子郵件模板中訪問time_ago_in_words?在ActionMailer模板中使用time_ago_in_words
您可以使用
def YourNotifierClass < ActionMailer::Base
include ActionView::Helpers::DateHelper
...
end
包括日期幫手。