rails: render variable with layout doesn't work
===

I have the following two lines in my rails 3.2 application. The first one works, the second doesn't - the layout is not applied.

    <%= render partial: 'question_pages/question_page', layout: 'layouts/question_page', locals: {question_page: question_page} %>

    <%= render question_page, layout: 'layouts/question_page' %>

Any ideas on why I can't pass layout to `render variable`?