# Not using view layout application.rhtml on certian things

**URL:** <https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896>\
**Category:** Rails\
**Created:** [February 20, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896 "2009-02-20T18:23:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [February 20, 2009, 6:23pm UTC](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896/1 "2009-02-20T18:23:16Z")

</div>

so i have a view that pops up in a window and the application.rhtml  
includes all the navigation stuff sooo the navigation stuff shows up in  
the window… is there a way to have certian views ignore the  
view/layouts/application.rhtml?

---

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [February 20, 2009, 6:29pm UTC](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896/2 "2009-02-20T18:29:19Z")

</div>

render :action =\> ‘some\_action’, :layout =\> false

- 

Maurício Linhares  
[http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
(en)

On Fri, Feb 20, 2009 at 2:23 PM, Morgan M.

---

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [February 20, 2009, 7:43pm UTC](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896/3 "2009-02-20T19:43:14Z")

</div>

MaurÃ­cio Linhares wrote:

> render :action =\> ‘some\_action’, :layout =\> false
> 
> - 
> 
> Maurï¿½cio Linhares  
> [http://alinhavado.wordpress.com/](http://alinhavado.wordpress.com/) (pt-br) | [http://blog.codevader.com/](http://blog.codevader.com/)  
> (en)
> 
> On Fri, Feb 20, 2009 at 2:23 PM, Morgan M.

Thank you… worked like a charm.

---

<div class="post-metadata">

**Author:** ![morgan](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/0ea827/32.png) [@morgan](https://www.ruby-forum.com/u/morgan)\
**Post date:** [February 21, 2009, 7:56am UTC](https://www.ruby-forum.com/t/not-using-view-layout-application-rhtml-on-certian-things/160896/4 "2009-02-21T07:56:12Z")

</div>

You could also use something like the following:

class AController \< ActionController::Base  
layout “my\_layout”, :except =\> [:action1, :action2]

…  
end

Mauricio’s method might be preferred when you’re using the default  
layout  
and you’ve just got a couple of actions that don’t require the layout.

On Fri, Feb 20, 2009 at 7:43 PM, Morgan M. \<
