<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ayaketan</author_name>
  <author_url>https://blog.hatena.ne.jp/ayaketan/</author_url>
  <blog_title>ayaketanのプログラミング勉強日記</blog_title>
  <blog_url>https://ayaketan.hatenablog.com/</blog_url>
  <categories>
    <anon>Ruby</anon>
  </categories>
  <description>レイアウトを管理者と一般ユーザー用に分けたかった。 コントローラーを継承するのではなく、レイアウトで分ける方法を見つけたので、メモ。app/views/layouts/application.html.erbに下記のように記載した。 &lt;!DOCTYPE html&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;SampleProject&lt;/title&gt; &lt;%= stylesheet_link_tag &quot;application&quot;, media: &quot;all&quot;, &quot;data-turbolinks-track&quot; =&gt; true %&gt; &lt;%= javascript_include_tag &quot;applicat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fayaketan.hatenablog.com%2Fentry%2F2014%2F02%2F12%2F214652&quot; title=&quot;Rails4 レイアウトの継承 - ayaketanのプログラミング勉強日記&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>http://cdn-ak.f.st-hatena.com/images/fotolife/a/ayaketan/20140212/20140212213611.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2014-02-12 21:46:52</published>
  <title>Rails4 レイアウトの継承</title>
  <type>rich</type>
  <url>https://ayaketan.hatenablog.com/entry/2014/02/12/214652</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
