potfmq
Last Updated: February 25, 2016
·
275
· dperrymorrow
37b092a324da25d53fd63d780692b174

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.

Say Thanks
Respond