Render partial with layout

Just a quick tip:

It is possible to pass a :layout option to a render :partial call like this
<%= render :partial => 'some_list', :layout => 'list_widget' %>

Leave a comment

0 Comments.

Leave a Reply


[ Ctrl + Enter ]