<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakaearth</author_name>
  <author_url>https://blog.hatena.ne.jp/nakaearth/</author_url>
  <blog_title>nakaearthの日記</blog_title>
  <blog_url>https://nakaearth.hatenadiary.org/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>前回の記事でdraperを使ってview側のロジックを減らすというのを書きましたが、今回はactive_decoratorです。設定の仕方は簡単です。 Gemfileにまずは追加してbundle installを実行してインストールします。 gem 'active_decorator'$ bbundle install --path vendor/bundle続いてactive_decoratorのジェネレータを実行してファイルを生成します。 bundle exec rails g decorator [該当するmodel名]生成されたものは次のようになります。userモデル二対するactiv…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnakaearth.hatenadiary.org%2Fentry%2F20140622%2F1403400714&quot; title=&quot;active_decoratorも使ってみた - nakaearthの日記&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>2014-06-22 10:31:54</published>
  <title>active_decoratorも使ってみた</title>
  <type>rich</type>
  <url>https://nakaearth.hatenadiary.org/entry/20140622/1403400714</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
