<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hsaitou</author_name>
  <author_url>https://blog.hatena.ne.jp/hsaitou/</author_url>
  <blog_title>Choorker's Field Notes.</blog_title>
  <blog_url>https://fnta.hatenablog.com/</blog_url>
  <categories>
    <anon>rails</anon>
  </categories>
  <description>Railsでフォームを作っていた時にちょっとハマったのでメモ。 これまでのフォーム要素は:class =&gt; &quot;form-control&quot;を付加すればclassがセットされたので、同じように &lt;%= f.collection_select :hoge_id, Hoge.all, :id, :name, :class =&gt; &quot;form-control&quot; %&gt; でできるかなと思っていたんだけど、classが効いていない。 ググっても同様な事象に悩んでいる情報が見つからなかったんだけど、海外のサイトで発見。下記のような指定で解決できた。 &lt;%= f.collection_select :hoge_id…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ffnta.hatenablog.com%2Fentry%2F2014%2F04%2F15%2F202128&quot; title=&quot;collection_selectにclassをセットする - Choorker&amp;#39;s Field Notes.&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>2014-04-15 20:21:28</published>
  <title>collection_selectにclassをセットする</title>
  <type>rich</type>
  <url>https://fnta.hatenablog.com/entry/2014/04/15/202128</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
