title: Render @object and locals vs render :partial
body: <p>I want to pass a local variable that contains the origin to come on a specific page, this variable contains just a symbol with the value.</p>
  
  <p>When I use this code it works perfect, the origin variable is accessible in the partial :</p>
  
  <pre><code>render :partial =&gt; "products", :collection =&gt; @products, :locals =&gt; {:origin =&gt; :gallery}
  </code></pre>
  
  <p>But when I use this code, the origin is not set and not accessible in the partial :</p>
  
  <pre><code>render @products, :locals =&gt; {:origin =&gt; :gallery}
  </code></pre>
  
  <p>What is the difference here? Is the second line of code not render the partial like the first line?</p>