<?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>
    <anon>雑記</anon>
  </categories>
  <description>人それぞれやり方はあると思うけど、自分はこう思うよ系雑記 環境 rails (5.2.0) 事例 前提の話 レイアウトとレンダリング | Rails ガイド の 「3.4.4 ローカル変数を渡す」にも紹介されているように部分Layoutには変数を渡すことができる。 ▼contents/index.html.erb &lt;%= render :partial =&gt; &quot;content&quot;, :locals =&gt; { title: @content.title , body:@content.body } %&gt; ▼contents/_content.html &lt;p&gt;タイトルは&lt;%= title %&gt;です&lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshinkufencer.hateblo.jp%2Fentry%2F2018%2F09%2F24%2F234003&quot; title=&quot;RailsのViewPartialにて引数確認にdefine?を使うようなケースは本当にそこまでやるか立ち止まって考えて欲しい - コード日進月歩&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>2018-09-24 23:40:03</published>
  <title>RailsのViewPartialにて引数確認にdefine?を使うようなケースは本当にそこまでやるか立ち止まって考えて欲しい</title>
  <type>rich</type>
  <url>https://shinkufencer.hateblo.jp/entry/2018/09/24/234003</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
