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 [50c7aab996baafdfee4b1e4b2ca4673ee76bb19a] by Carlos Antonio da Silva

Revision 50c7aab996baafdfee4b1e4b2ca4673ee76bb19a, committed by Carlos Antonio da Silva · November 11th, 2010 @ 03:22 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.
https://github.com/rails/rails/commit/50c7aab996baafdfee4b1e4b2ca46...

5 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/test/template/render_test.rb