相关疑难解决方法(0)

如何在我的ActionMailer视图中使用我的视图助手?

我想使用我app/helpers/annotations_helper.rb在ReportMailer views(app/views/report_mailer/usage_report.text.html.erb)中定义的方法.我该怎么做呢?

基于本指南,似乎该add_template_helper(helper_module)方法可能会做我想要的,但我无法弄清楚如何使用它.

(顺便说一下,你有没有理由在邮件程序视图中访问一组不同的帮助程序?这非常烦人.)

ruby-on-rails

223
推荐指数
8
解决办法
6万
查看次数

标签 统计

ruby-on-rails ×1