<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>satoshi_hatta</author_name>
  <author_url>https://blog.hatena.ne.jp/satoshi_hatta/</author_url>
  <blog_title>satoshi_hatta’s blog</blog_title>
  <blog_url>https://satoshi-hatta.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>都道府県名一覧やカテゴリーなど基本的に変更されないデータは データベースに保存せずに、ActiveHashというGemを使います。 準備 Gemfileに gem 'active_hash' と記述して、「bundle install」を実行します。 つづいて、ターミナルで % rails g model game を実行して、テーブルを作成します。 定義と継承 app/modelsディレクトリにgenre.rbファイルを作成します。 そしてこのファイルに定義します。 class Genre &lt; ActiveHash::Base self.data = [ { id: 1, name: '--…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsatoshi-hatta.hateblo.jp%2Fentry%2F2021%2F05%2F06%2F154443&quot; title=&quot;Ruby on Rails 〜ActiveHashをまとめてみました〜 - satoshi_hatta’s blog&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>2021-05-06 15:44:43</published>
  <title>Ruby on Rails 〜ActiveHashをまとめてみました〜</title>
  <type>rich</type>
  <url>https://satoshi-hatta.hateblo.jp/entry/2021/05/06/154443</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
