From c59150c04114682e4866e6806ec19d72dc96fd76 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Wed, 1 Feb 2012 01:28:02 +0800 Subject: [PATCH] Fix premailer issues by reading CSS file into a style tag, instead of trying to use stylesheet_link_tag --- app/views/layouts/mailer.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/mailer.html.haml b/app/views/layouts/mailer.html.haml index 54d77f1..352f4d7 100644 --- a/app/views/layouts/mailer.html.haml +++ b/app/views/layouts/mailer.html.haml @@ -1,7 +1,10 @@ %html %head - = stylesheet_link_tag 'mailers/mailer' + =# stylesheet_link_tag 'mailers/mailer' + -# Include CSS inline + %style + = File.read(Rails.root.join('public/stylesheets/mailers/mailer.css')) %body(leftmargin="0" marginwidth="0" topmargin="0" marginheight="0" offset="0") %center %table(cellpadding="0" cellspacing="0" border="0" width="100%") -- libgit2 0.21.2