dun*_*289 3 ruby haml actionmailer
我正在尝试在项目中使用没有Rails的ActionMailer,我想将Haml用于HTML电子邮件模板.任何人都有运气得到这个配置和初始化,以便找到并呈现模板?我目前收到的错误如下:
ActionView::MissingTemplate: Missing template new_reg/daily_stats/full with {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en]} in view paths "/home/petersen/new_reg/lib/new_reg/mailers/views"
Run Code Online (Sandbox Code Playgroud)
为了澄清,这是ActionMailer 3.0.4
看起来问题是没有完整的Rails堆栈,Haml没有完全加载,特别是Haml :: Plugin类.require 'haml/template/plugin'正常require 'haml'线后添加似乎解决了问题.