<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shinkufencer</author_name>
  <author_url>https://blog.hatena.ne.jp/shinkufencer/</author_url>
  <blog_title>コード日進月歩</blog_title>
  <blog_url>https://shinkufencer.hateblo.jp/</blog_url>
  <categories>
    <anon>Rails</anon>
  </categories>
  <description>読み込み順番によって変わるやつ。ということで なるべく使わないほうがいい けど動作だけ 環境 rails (5.0.2) 動作概要 通常のviewテンプレートの yield の 記述の前に content_for を 含むpartialを render すれば出てくる。 逆にyield の 記述のあとに content_for を書いても出てこない。 ただし、layoutは位置関係無く反応する。 例 app/views/layouts/application.html.erb に以下のようにする &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;SampleApp&lt;/t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2019%2F12%2F20%2F000000&quot; title=&quot;Railsのcontent_forは別のpartialに記述したものでも動くが、順番や場所によって挙動が変わる - コード日進月歩&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>2019-12-20 00:00:00</published>
  <title>Railsのcontent_forは別のpartialに記述したものでも動くが、順番や場所によって挙動が変わる</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2019/12/20/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
