This project is archived and is in readonly mode.

Changeset [d5fd83f4c7f01cc1761783408267cce4d5da1946] by Carlos Antonio da Silva

November 11th, 2010 @ 03:24 PM

Fix render partial with layout and no block

When using a render :partial with :layout call, without giving a block,
if the given :partial had another render :partial call, the layout was
not being rendered. This commit fixes this context by storing variables
before rendering the partial, so they are not overrided in any successive
call to render partials down the path. All ActionPack tests are ok.

Signed-off-by: José Valim jose.valim@gmail.com
https://github.com/rails/rails/commit/d5fd83f4c7f01cc1761783408267c...

Committed by Carlos Antonio da Silva

  • A actionpack/test/fixtures/test/_partial_with_partial.erb
  • M actionpack/lib/action_view/render/partials.rb
  • M actionpack/lib/action_view/render/rendering.rb
  • M actionpack/test/template/render_test.rb

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>