# Popup Content Without Application Layout

**URL:** <https://www.ruby-forum.com/t/popup-content-without-application-layout/110247>\
**Category:** Rails\
**Created:** [July 24, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/popup-content-without-application-layout/110247 "2007-07-24T16:41:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eboss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ea666f/32.png) [@eboss](https://www.ruby-forum.com/u/eboss)\
**Post date:** [July 24, 2007, 4:41pm UTC](https://www.ruby-forum.com/t/popup-content-without-application-layout/110247/1 "2007-07-24T16:41:16Z")

</div>

I am building a page that uses ThickBox  
([http://jquery.com/demo/thickbox/](http://jquery.com/demo/thickbox/)) to display details about a record. A  
user clicks a link on the page and a ThickBox pops up showing the record  
as HTML. Unfortunately since I have an overall layout setup in my  
application layout, that HTML is showing in the small popup box and it  
doesn’t match.

How do I remove the added layout for just this specific view? Do I have  
to turn the entire layout into a number of partials and insert them for  
every view?

---

<div class="post-metadata">

**Author:** ![eboss](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/ea666f/32.png) [@eboss](https://www.ruby-forum.com/u/eboss)\
**Post date:** [July 26, 2007, 12:45am UTC](https://www.ruby-forum.com/t/popup-content-without-application-layout/110247/2 "2007-07-26T00:45:46Z")

</div>

Add render :layout =\> false to the end of your controller’s action to  
have  
it skip the layout portion of rendering.

D. Taylor S.  
Reality Technician  
[http://realitytechnicians.com](http://realitytechnicians.com)
