ruby - Haml + ActionMailer - Rails? -
i'm trying use actionmailer without rails in project, , want use haml html email templates. have luck getting configured , initialized templates found , rendered? i'm getting errors like:
actionview::missingtemplate: missing template new_reg/daily_stats/full {:handlers=>[:erb, :rjs, :builder, :rhtml, :rxml], :formats=>[:html], :locale=>[:en]} in view paths "/home/petersen/new_reg/lib/new_reg/mailers/views"
to clarify, actionmailer 3.0.4
looks issue without full rails stack, haml doesn't load, haml::plugin class. adding require 'haml/template/plugin'
after normal require 'haml'
line seems solve problems.
Comments
Post a Comment