Skip to content

Instantly share code, notes, and snippets.

@edward
Created May 21, 2014 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edward/28b16bb6f5dff8f2275f to your computer and use it in GitHub Desktop.
Save edward/28b16bb6f5dff8f2275f to your computer and use it in GitHub Desktop.
email = dispute_email
f = Tempfile.new(['html-email-test', '.html'], Rails.root + 'tmp')
f.write(email.html_part.body)
basename = File.basename(f.path)
puts "file:///Users/edward/Shopify/vagrant/src/shopify/tmp/#{basename}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment