0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Railsを4.2.8にしたら、RoadieでHTMLメールが送れなかった話

0
Posted at

環境

Railsを4.1.7から、4.2.8に上げた
Ruby 2.4.1

roadie-railsは、HTMLメールのcssインライン化をやりやすくするgemです。

erroe文

Roadie::ProvidersFailed: Could not find stylesheet "email.css": All providers failed

解決方法

mailer.html.slimに記述していた、cssの指定方法が悪かったです。

link rel="stylesheet" href="email.css"

↑これを、
↓にします。

 = stylesheet_link_tag 'email'

ちなみに、

ちゃんと本家のドキュメントに書いてあることでした。
しかし、どうして今まで動作していたのか不明です。。。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?