This project is archived and is in readonly mode.

Changeset [3e86e4b34ecac0bbd9fab33a459b55958214f3e7] by Carlos Antonio da Silva

November 11th, 2010 @ 03:23 PM

Fix issue with rendering partials and then yielding inside a render layout call

The given block was never being executed when another render :partial call
existed before the yield call, due to the block being overriden.

This commit also adds some more tests to render with :layout option.

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

Committed by Carlos Antonio da Silva

  • A actionpack/test/fixtures/layouts/_partial_and_yield.erb
  • A actionpack/test/fixtures/layouts/_yield_only.erb
  • A actionpack/test/fixtures/layouts/_yield_with_params.erb
  • A actionpack/test/fixtures/layouts/yield_with_render_partial_inside.erb
  • M actionpack/lib/action_view/render/partials.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>