Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Changeset [3e86e4b34ecac0bbd9fab33a459b55958214f3e7] by Carlos Antonio da Silva

Revision 3e86e4b34ecac0bbd9fab33a459b55958214f3e7, committed 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...

6 changed files

  • 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