<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>next49</author_name>
  <author_url>https://blog.hatena.ne.jp/next49/</author_url>
  <blog_title>発声練習</blog_title>
  <blog_url>https://next49.hatenadiary.jp/</blog_url>
  <categories>
    <anon>RoR</anon>
  </categories>
  <description>こんな人私の他にいるのかわからないけど、ハマったのでメモ。 前提 Fruit モデルを継承した Apple と Orange を Single Table Inheritance で実現する。 # app/models/fruit.rb class Fruit &lt; ActiveRecord::Base self.inheritance_column = :type 〜省略〜 end class Apple &lt; Fruit 〜省略〜 end class Orange &lt; Fruit 〜省略〜 endコントローラーは Fruitのものを共有する。 # config/routes.rb resour…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnext49.hatenadiary.jp%2Fentry%2F20150131%2Fp1&quot; title=&quot; Single Table Inheritance を利用し、かつ、form_for では親クラスのコントローラーを使いたいとき - 発声練習&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>2015-01-31 00:00:00</published>
  <title> Single Table Inheritance を利用し、かつ、form_for では親クラスのコントローラーを使いたいとき</title>
  <type>rich</type>
  <url>https://next49.hatenadiary.jp/entry/20150131/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
