Last Updated: February 25, 2016
·
1.129K
· david morrow

Rendering partial with a layout

In Rails you might want to wrap a rendered partial with a layout just like you do from your controller.

Did you know render :partial takes a layout option?

render :partial => "shared/touts/pdfs_tout", :layout => "shared/touts/tout_template"

I'm finding this useful.