title: Ruby on Rails form_for select field with class
body: <p>I am beating my head against the wall on this one. I want to make a simple select tag using the <code>f.select</code> tag but nothing I do works. I put an example below:</p>
  
  <pre><code>&lt;%= f.select(:object_field, ['Item 1', 'Item 2', 'Item 3', 'Item 4', 'Item 4'], :class =&gt; 'my_style_class')%&gt;
  </code></pre>
  
  <p>Ok, so basically it is a simple list that once the form is submitted it places the value into the <code>object_field</code>. That all works, but viewing the page source the class tag is not included. It doesn't throw an error, it just skips it all together.</p>
  
  <p>If anyone has any suggestions I would greatly appreciate it.</p>