How does one integrate the \'premailer\' gem with a Rails (3.0.7) project? I currently have in my mailer:
def welcome(user)
@user = user
mail to: user.e
For Rails 4 users you can: add the gems
gem 'premailer-rails'
gem 'nokogiri' (if you don't have it)
add this to your stylesheet (Haml):
%style{type:"text/css"}= Rails.application.assets.find_asset('email_stylesheet').to_s
for some reason it wasn't working with a normal stylesheet_link_tag
That's all I had to do. Hope this help!