<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Oratok</author_name>
  <author_url>https://blog.hatena.ne.jp/Oratok/</author_url>
  <blog_title>Rails つまみぐい</blog_title>
  <blog_url>https://rails.hatenadiary.jp/</blog_url>
  <categories>
    <anon>Rails3</anon>
  </categories>
  <description>Ruby on Rails v3.2.11 HTMLで表示をする場合、デフォルトのlayoutとしてapp/views/layouts/内のapplication.html.erbが使用されます。1つのRailsアプリケーション内で、複数のlayoutを使い分けたくなった場合のやり方についてのメモ。 renderする際にlayoutを指定 controllerの中でrenderする際にlayoutを指定できます。デフォルトのlayoutとは別のlayoutとしてapp/views/layouts/にanother_layout.html.erbを用意した場合、このように書きます。 respon…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frails.hatenadiary.jp%2Fentry%2F2013%2F02%2F15%2F103958&quot; title=&quot;layoutを使い分ける - 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>2013-02-15 10:39:58</published>
  <title>layoutを使い分ける</title>
  <type>rich</type>
  <url>https://rails.hatenadiary.jp/entry/2013/02/15/103958</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
