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"
To clarify, this is ActionMailer 3.0.4
I I’m trying to use ActionMailer without Rails in my project and I want to use Haml for HTML email templates. Anyone have luck to get this configured and initialized in order to find and render the template? The error I currently receive is as follows:
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"
To clarify, this is ActionMailer 3.0.4
It seems that the problem is that there is no complete Rails stack, and Haml is not fully loaded, especially Haml: : Plugin class. Adding require’haml/template/plugin’ after the normal need’haml’ line seems to solve the problem.