title: Rails: collection_check_boxes to filter search results
body: <p>I'm trying to implement a search view which enables users to search other users based on keyword AND multiple checkboxes for their tags. I'm still trying to figure out how to place the <code>collection_check_boxes</code> right, so that view is rendered correctly. Here's what I have so far:</p>
  
  <pre><code>  &lt;%= form_tag users_path, :method =&gt; 'get' do %&gt;
      &lt;%= collection_check_boxes :options, :tag_ids, Tag.order(:name), :id, :name, {multiple: true} %&gt;
      &lt;%= text_field_tag :search, params[:search], :placeholder =&gt; "Search", :id =&gt; "query" %&gt;
      &lt;%= submit_tag "Search", :name =&gt; nil, :style =&gt; "float:left;"%&gt;
    &lt;% end %&gt;
  </code></pre>
  
  <p>Can you help me complete the view function above by making sure that, when a user clicks <code>search</code> <code>collection_check_boxes</code> will add something like <code>tag=tag1&amp;tag2&amp;tag3</code> to the url?</p>