title: rails ransack keep showing the selected values
body: <p>I'm using the gem <code>ransack</code> in a Rails app.
  It is a very useful gem!</p>
  
  <p>But, after the search takes place, the text fields keep what you typed in and the select drop-downs don't.  </p>
  
  <p>This is an example text search (it stays in place after you search):</p>
  
  <pre><code>&lt;div class="field" &gt;
    &lt;p&gt;&lt;%= f.label :description_cont, "Description:" %&gt;&lt;/p&gt;
    &lt;p&gt;&lt;%= f.text_field :description_cont %&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is an example of a related field that uses a select drop-down (and what you select gets cleared after you search):</p>
  
  <pre><code>&lt;div class="field" &gt;
    &lt;p"&gt;&lt;%= f.label :client_client_name_cont, "Client:" %&gt;&lt;/p&gt;
    &lt;p&gt;&lt;%= f.select :client_id_eq, options_from_collection_for_select(Client.all, "id", "client_name"), include_blank: true %&gt;&lt;/p&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>How can I keep the dropdown selected value after the search?</p>
  
  <p>Thanks for your help!</p>