title: How to add class attribute to select tag in rails 3
body: <p>I want to add class attribute to select tag in rails 3
  my code is</p>
  
  <pre><code>&lt;div &gt;
      &lt;%= f.label :type %&gt;&lt;br /&gt;
      &lt;%= f.select "type_id", options_from_collection_for_select(@type,
      "type_id","name"),:include_blank=&gt;true%&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p>My problem is that I want to add one specific class name to this select tag for validation purpose.
  I tried adding </p>
  
  <pre><code>  :class=&gt;"myclassname"
  </code></pre>
  
  <p>but it not worked for me.plz resolve my issue</p>