<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>miyohide</author_name>
  <author_url>https://blog.hatena.ne.jp/miyohide/</author_url>
  <blog_title>miyohideの日記</blog_title>
  <blog_url>https://miyohide.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>Railsでbodyタグにcontroller名とaction名から生成したidをつける 久しぶりにRailsで実装していて、タイトルのようなことをやりたい時の実装方法。以下のブログを参照。 v-crn.hatenablog.com application.html.erbにて以下のように実装すると、 &lt;body id='&lt;%= &quot;#{controller.controller_name}_#{controller.action_name}&quot; %&gt;'&gt; 生成した結果は以下の通りになる（posts#indexにアクセスした時の例）。 &lt;body id=&quot;posts_index&quot;&gt; &lt;/body&gt;</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmiyohide.hatenadiary.jp%2Fentry%2F2023%2F03%2F07%2F201544&quot; title=&quot;2023年3月7日（火）Railsでbodyタグにcontroller名とaction名から生成したidをつける - miyohideの日記&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>2023-03-07 20:15:44</published>
  <title>2023年3月7日（火）Railsでbodyタグにcontroller名とaction名から生成したidをつける</title>
  <type>rich</type>
  <url>https://miyohide.hatenadiary.jp/entry/2023/03/07/201544</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
