# Render without layout

**URL:** <https://www.ruby-forum.com/t/render-without-layout/75911>\
**Category:** Rails\
**Created:** [November 14, 2006, 9:06am UTC](https://www.ruby-forum.com/t/render-without-layout/75911 "2006-11-14T09:06:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![binkly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@binkly](https://www.ruby-forum.com/u/binkly)\
**Post date:** [November 14, 2006, 9:06am UTC](https://www.ruby-forum.com/t/render-without-layout/75911/1 "2006-11-14T09:06:19Z")

</div>

hello,

i’m using Craig A.'s RedBox pluging and I’d like to render a  
partial inside the RedBox, and this happens to some extent. On Craig’s  
site the lightbox renders across his entire screen, but on my setup it  
only renders with the lightbox shifted to the right. This happens to  
varying degrees on different browsers. I inspected the DOM and noticed  
that whenever the lightbox is rendered I see something like

and normally its just

 when the lightbox hasn’t been  
activated.

My thinking is that somehow i’m rendering and entire page instead of  
just the partial, but for some reason all the parts of the page don’t  
display.

Does anyone know how to force rails to just render the partial and not  
its layout?

thanks,

binh

---

<div class="post-metadata">

**Author:** ![binkly](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/b5e925/32.png) [@binkly](https://www.ruby-forum.com/u/binkly)\
**Post date:** [November 14, 2006, 10:35am UTC](https://www.ruby-forum.com/t/render-without-layout/75911/2 "2006-11-14T10:35:44Z")

</div>

pass the :layout =\> false option to your call to render

Fred
