title: How to add html class to rails f.select field?
body: <p>I have found a few similar articles on stack but none of these examples seem to do the trick. </p>
  
  <p>I'm calling map on an object, to create options in an f.select field, and I'm also using Include_blank option, then trying the class and the class will not work. </p>
  
  <p>I've tried the following: </p>
  
  <pre><code>&lt;%= f.select(:city_race_id, @city_races.map {|n| [n.office, n.id]}, include_blank: true,  html: { class: "form-control" }) %&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>&lt;%= f.select(:city_race_id, @city_races.map {|n| [n.office, n.id]}, include_blank: true, :class =&gt; 'form-control' ) %&gt;
  </code></pre>
  
  <p>both render form and doesn't break rails, but neither show styling.</p>