Rendering a layout overwrites the template's status code (Ticket #9476)

Changeset 7403 broke rendering a template inside a layout with a
specific status code. When the template is rendered, the status code
is set, however the layout is rendered with the default "200 OK"
status code, overwriting the one assigned when the template was
rendered. The attached patch adds a failing test for this problem, and
includes a fix for problem.

http://dev.rubyonrails.org/ticket/9476

Mark

This patch has been given a few thumbs up. Could we get this bug fix applied?

Mark