1 2 3 4
<%= render :layout => 'test/layout_for_partial', :locals => { :name => 'Bar!' } do %> <%= render 'test/partial' %> <% end %> partial with layout