title: Rails: Passing multiple parameters to form_for url?
body: <p>This works great:</p>
  
  <pre><code>- form_for @user, :url =&gt; { :action =&gt; :create, :type =&gt; @type } do |f| ...
  </code></pre>
  
  <p>Returns <code>/users/(id)?type=type</code></p>
  
  <p>But in another view I need to pass TWO parameters into the URL string, and this does not work:</p>
  
  <pre><code>- form_for @user, :url =&gt; { :action =&gt; :update, :type =&gt; @type, :this =&gt; @currently_editing } do |f| ...
  </code></pre>
  
  <p>Returns <code>/users/(id)?this=currently_editing</code></p>
  
  <p>I've also tried:</p>
  
  <pre><code>- form_for @user, :url =&gt; { :action =&gt; :update, :params = params.merge({:this =&gt; @currently_editing, :type = @type})} do |f| ...
  </code></pre>
  
  <p>... with no luck (error: only GET requests allowed).</p>
  
  <p>What I want is for it to return this: <code>/users/(id)?this=currently_editing&amp;type=type</code></p>
  
  <p>Thoughts?</p>