title: Rails collection_select default option?
body: <p>so I'm putting together a collection select.</p>
  
  <pre><code>&lt;%= collection_select :PriceRange, "7", PriceRange.where('value &gt; 0'), :value, :name %&gt;
  </code></pre>
  
  <p>I'm trying to get the default selection to be PriceRange with the id of 7, this is independent and doesn't rely on any of the users settings, its part of a form that changes the items displayed on the page by their price range.</p>
  
  <pre><code>* * * UPDATED EFFORTS * * *
  </code></pre>
  
  <p>I added</p>
  
  <pre><code>@price_higher = PriceRange.find(7)
  </code></pre>
  
  <p>to the Controller that handles the view, and added</p>
  
  <pre><code>, {:selected =&gt; @price_higher.value}
  </code></pre>
  
  <p>inside the collection_select. It seems to do the trick, although was looking for a less complicated way of doing it all inside the collection_select.</p>