<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>elm200</author_name>
  <author_url>https://blog.hatena.ne.jp/elm200/</author_url>
  <blog_title>elm200 の日記(旧はてなダイアリー)</blog_title>
  <blog_url>https://elm200.hatenadiary.org/</blog_url>
  <categories>
    <anon>Ruby on Rails</anon>
  </categories>
  <description>ActiveRecord 向けのビューヘルパーメソッドを使いたい 複雑な検索条件などをフォーム上で表現するとき、ページのリロード時の値の保存や値のパースに便利なように、モデルクラスを利用したいときがあるかもしれない。たとえば、 &lt;%= select 'search_cond', 'demographic', [[&quot;10歳未満&quot;, 1], [&quot;10代&quot;, 2], [&quot;20代&quot;, 3], [&quot;30歳以上&quot;, 4]] %&gt; などとしたいのである。問題は当然ながら search_conds などというテーブルがデータベースに存在しないことである。text_field や select など *_tag…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Felm200.hatenadiary.org%2Fentry%2F20070909%2F1189318613&quot; title=&quot; データベースにテーブルを作らずに ActiveRecord を利用する - elm200 の日記(旧はてなダイアリー)&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>2007-09-09 15:16:53</published>
  <title> データベースにテーブルを作らずに ActiveRecord を利用する</title>
  <type>rich</type>
  <url>https://elm200.hatenadiary.org/entry/20070909/1189318613</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
