ruby – Haml ActionMailer – Rails?

I am trying to use ActionMailer without Rails in my project and I want to use Haml for HTML email templates. Anyone has 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 not complete Rails stack, Haml is not fully loaded, especially the Haml::Plugin class. Adding require’haml/template/plugin’ after the normal need’haml’ line seems to solve the problem.

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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 394 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.