title: rails 3 render partial with params
body: <p>I'm having a problem passing some parameters to a partial. No matter what I've tried the params don't pass when the partial is rendered.</p>
  
  <p>I am using a jquery tabbed layout, and each tab displays work orders in a particular status and also based on a range of dates.</p>
  
  <p>I am using the params :sort_filter and :status_filter to accomplish this.</p>
  
  <p>My original code is here, but I want to change this to render partials in the link_to's instead of the way it's listed here:</p>
  
  <pre><code>         &lt;ul&gt;
              &lt;li&gt;&lt;%= link_to "Active", work_orders_path(params.merge({:status_filter =&gt; "A", :sort_filter =&gt; params[:sort_filter]}))  %&gt;&lt;/li&gt;
              &lt;li&gt;&lt;%= link_to "On Hold", work_orders_path(params.merge({:status_filter =&gt; "H", :sort_filter =&gt; params[:sort_filter]}))  %&gt;&lt;/li&gt;
              &lt;li&gt;&lt;%= link_to "Completed", work_orders_path(params.merge({:status_filter =&gt; "C", :sort_filter =&gt; params[:sort_filter]}))  %&gt;&lt;/li&gt;
              &lt;li&gt;&lt;%= link_to "Billed", work_orders_path(params.merge({:status_filter =&gt; "B", :sort_filter =&gt; params[:sort_filter]}))  %&gt;&lt;/li&gt;
          &lt;li&gt;&lt;%= link_to "All", work_orders_path(params.merge({:status_filter =&gt; "E", :sort_filter =&gt; params[:sort_filter]})) %&gt;&lt;/li&gt;
       &lt;/ul&gt;
  </code></pre>
  
  <p>So instead of linking to the index in my work_orders_path, I'd like to link to a partial called viewall. Like this:</p>
  
  <pre><code>&lt;%= link_to render (:partial =&gt; 'viewall', :status_filter =&gt; "E", :sort_filter =&gt; params[:sort_filter]) %&gt;
  </code></pre>
  
  <p>I need to be able to pass the merged parameters with the partial if possible. I've looked at all the documentation and googled my fingers off yesterday all day for an answer to this and still came up with nothing. Any help would be appreciated.</p>