# Rendering a collection of partial inserted in their layout

**URL:** <https://www.ruby-forum.com/t/rendering-a-collection-of-partial-inserted-in-their-layout/142650>\
**Category:** Rails\
**Created:** [July 10, 2008, 1:16am UTC](https://www.ruby-forum.com/t/rendering-a-collection-of-partial-inserted-in-their-layout/142650 "2008-07-10T01:16:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![itkin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/22d042/32.png) [@itkin](https://www.ruby-forum.com/u/itkin)\
**Post date:** [July 10, 2008, 1:16am UTC](https://www.ruby-forum.com/t/rendering-a-collection-of-partial-inserted-in-their-layout/142650/1 "2008-07-10T01:16:31Z")

</div>

hi !

i’ve to render a collection of partial, each element need to be inserted  
in a layout which render the html presentation.

collection\_element\_1

collection\_element\_2

...

render :partial, collection =\> @collection, :layout =\>  
‘layouts/my\_layout’  
=\> render the hole collection in a global layout

How would you do ?
