title: rails - passing :params in url
body: <p>I am stuck one more time ... and one more time I suspect it's a stupid syntax problem:</p>
  
  <p>I want to pass 2 vaiables in the url with my super simple search form. </p>
  
  <p>I was expecting a URL like this:
  <a href="http://mydomain/categories/search?search=pdf&amp;os=2" rel="nofollow noreferrer">http://mydomain/categories/search?search=pdf&amp;os=2</a>
  But I get this:
  <a href="http://mydomain/categories/search?search=pdf&amp;os[]=" rel="nofollow noreferrer">http://mydomain/categories/search?search=pdf&amp;os[]=</a></p>
  
  <p>I thought it should work like this:</p>
  
  <pre><code>&lt;% form_tag  search_path, :method =&gt; 'get' do %&gt;
    &lt;%= text_field_tag :search, params[:search] %&gt;
    &lt;%= hidden_field :os, params[@category.id] %&gt;
    &lt;%= submit_tag "Search", :name =&gt; nil %&gt;  
  &lt;% end %&gt;
  </code></pre>
  
  <p>... but well, it didn't do it ...</p>
  
  <p>Does anyone know where I am going wrong?</p>
  
  <p>Thanks!</p>
  
  <p>Val</p>