<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>a2ikm</author_name>
  <author_url>https://blog.hatena.ne.jp/a2ikm/</author_url>
  <blog_title>There's an echo in my head</blog_title>
  <blog_url>https://ikm.hatenablog.jp/</blog_url>
  <categories>
    <anon>gem</anon>
    <anon>ruby</anon>
    <anon>activerecord</anon>
  </categories>
  <description>ActiveRecordのserializeはYAMLにしか対応していないけど、serialize-railsを使うとJSONやXML、RubyのMarshalも保存できるようになる。 # Gemfile source 'http://rubygems.org' gem 'rails', '3.2.9' # 3.0.0 以上が必要 gem 'serialize-rails' # app/models/user.rb class User &lt; ActiveRecord::Base serialize :some_json_value, Hash, format: :json end シリアライズ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fikm.hatenablog.jp%2Fentry%2F2012%2F12%2F10%2F111051&quot; title=&quot;serialize-rails gemでJSONをDBに格納する - There&amp;#39;s an echo in my head&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>2012-12-10 11:10:51</published>
  <title>serialize-rails gemでJSONをDBに格納する</title>
  <type>rich</type>
  <url>https://ikm.hatenablog.jp/entry/2012/12/10/111051</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
