<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nyaahara</author_name>
  <author_url>https://blog.hatena.ne.jp/nyaahara/</author_url>
  <blog_title>railsがんばる子</blog_title>
  <blog_url>https://nyaahara.hatenablog.com/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>ActionMailerにて、erbテンプレートを利用することはよくあると思いますが、開発中にエラーが起きても下記の様に原因がよくわからないことがあります。 &gt; Mailer.sth(@order) =&gt; #&lt;ActionMailer::Base::NullMail:0x007f93bf3c8638&gt; ERBテンプレートだけを検証することで、原因を探ることが出来ます。 &gt; ERB.new(File.new('app/views/mailer/sth.text.erb').read).result ArgumentError: Missing host to link to! Please pr…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnyaahara.hatenablog.com%2Fentry%2F2017%2F10%2F24%2F193532&quot; title=&quot;ActionMailerを使ってる時にERBテンプレートでエラーしたときの原因特定方法 - railsがんばる子&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-10-24 19:35:32</published>
  <title>ActionMailerを使ってる時にERBテンプレートでエラーしたときの原因特定方法</title>
  <type>rich</type>
  <url>https://nyaahara.hatenablog.com/entry/2017/10/24/193532</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
