title: How to make the select_tag keep value of last search?
body: <p>I have a dropdown of prices using a select_tag, but each time I use the dropdown to set a price and then do the search then the values in the dropdowns go back to their default value when the search results are returned. How do I make the dropdown stay at the last value? Here's the code, I've got the :selected => at the end but don't know what value to give it:</p>
  
  <pre><code>&lt;%= label :price, 'max', "to $" %&gt;
  &lt;%= select_tag(:max, options_for_select([['$100,000', 100000], ['$200,000', 200000], ...['$20,000,000', 20000000]], :selected =&gt; ['$1,000,000', 1000000])) %&gt;
  </code></pre>