<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shio_chan</author_name>
  <author_url>https://blog.hatena.ne.jp/shio_chan/</author_url>
  <blog_title>メモ帳</blog_title>
  <blog_url>https://shio-chan.hatenadiary.org/</blog_url>
  <categories>
    <anon>Rails</anon>
    <anon>Ruby</anon>
  </categories>
  <description>render は部分テンプレートを呼び出すことができます。 次のコードは、同フォルダ内にある _hoge.html.erb を呼び出します。 &lt;%= render &quot;hoge&quot; %&gt; ウェブサイト上では、hogeページが埋めこまれている様に表示されます。 で、誤解をしていたのですが、render はメソッドや関数みたいなモノらしいです。main.html.erb &lt;% @Mains.each do | main| %&gt; &lt;%= render &quot;hoge&quot; %&gt; &lt;% end %&gt; _hoge.html.erb &lt;%= main %&gt; とやっても _hoge.html.erb は 「main な…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshio-chan.hatenadiary.org%2Fentry%2F20120323%2F1332511842&quot; title=&quot;render から変数を渡す方法 - メモ帳&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>2012-03-23 23:10:42</published>
  <title>render から変数を渡す方法</title>
  <type>rich</type>
  <url>https://shio-chan.hatenadiary.org/entry/20120323/1332511842</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
