title: Rails partial locals not persisting when sent to another partial as its own local
body: <p>I render a partial like so:</p>
  
  <pre><code>&lt;%= render :partial =&gt; 'widgets/some_partial, :locals =&gt; {:foo =&gt; 'bar'} %&gt;
  </code></pre>
  
  <p>So inside of <code>_some_partial.html.erb</code> I render two more partials like so:</p>
  
  <pre><code>&lt;% #foo.nil? #=&gt; false %&gt;
  &lt;%= render :partial =&gt; 'widgets/another_partial', :locals =&gt; {:foo =&gt; foo} %&gt;
  `&lt;%= render :partial =&gt; 'widgets/another_partial_again', :locals =&gt; {:foo =&gt; foo} %&gt;`
  </code></pre>
  
  <p>The foo local variable renders fine in <code>some_partial.html.erb</code> and even in <code>another_partial_again.html.erb</code>. However, the foo variable is inaccessible in <code>another_partial.html.erb</code> even though I explicitly passed it in the render call.</p>
  
  <p>What is happening here?</p>
  
  <p>Thanks for the help.</p>