<?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>たとえば次のようなフォームは時々見かける。 あなたのご興味(複数選択可) コンピュータ 旅行 車 ... これを Rails でうまく扱う方法を考えてみる。User モデルに interests という文字型のカラムを設けることにしよう。たとえば車と旅行に興味があれば、&quot;|&quot; を区切り文字として、interests カラムに &quot;車|旅行&quot;のように格納することにする。View には次のように記述する。 &lt;input type=&quot;checkbox&quot; name=&quot;user[interests(1s)]&quot; value=&quot;コンピュータ&quot;/&gt;コンピュータ &lt;input type=&quot;checkbox&quot; na…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Felm200.hatenadiary.org%2Fentry%2F20070823%2F1187829050&quot; title=&quot; multiparameter assignment を応用したフォームの入力 - 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-08-23 09:30:50</published>
  <title> multiparameter assignment を応用したフォームの入力</title>
  <type>rich</type>
  <url>https://elm200.hatenadiary.org/entry/20070823/1187829050</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
