我正在尝试在项目中使用没有Rails的ActionMailer,我想将Haml用于 HTML电子邮件模板.任何人都有运气得到这个配置和初始化,以便找到并呈现模板?我目前收到的错误如下: ActionView::MissingTe
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"
为了澄清,这是ActionMailer 3.0.4
看起来问题是没有完整的Rails堆栈,Haml没有完全加载,特别是Haml :: Plugin类.在正常需要’haml’行之后添加require’haml / template / plugin’似乎可以解决问题.