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