<?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>
    <anon>routes</anon>
  </categories>
  <description>何が起きたのか /xxx.txtなどのアクセスを受けた時、MissingTemplateエラーが出力される 概要 404.txtをrenderしようとするが、404.html.erbなどHTMLファイルしか用意していないことが原因である。 なるほどね。 まあ、当たり前ですよね 解決策 Railsで対応しているフォーマットの404と500を全部作る MissingTemplateが発生したら404.htmlに無理やり変更する（もしくは500） Railsで運営されてるっぽいサイトはどうやって対応しているのか？ github様 いつもお世話になっています。 https://github.com/r…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnyaahara.hatenablog.com%2Fentry%2F2016%2F06%2F30%2F220750&quot; title=&quot;/xxx.txtなどのアクセスを受けた時、MissingTemplateエラーが出力される - 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>https://gyazo.com/a4fcd288c56635a225c20374f142a058/raw</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-06-30 22:07:50</published>
  <title>/xxx.txtなどのアクセスを受けた時、MissingTemplateエラーが出力される</title>
  <type>rich</type>
  <url>https://nyaahara.hatenablog.com/entry/2016/06/30/220750</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
