# Disable Application Layout?

**URL:** <https://www.ruby-forum.com/t/disable-application-layout/162434>\
**Category:** Ruby\
**Created:** [March 9, 2009, 11:43pm UTC](https://www.ruby-forum.com/t/disable-application-layout/162434 "2009-03-09T23:43:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [March 9, 2009, 11:43pm UTC](https://www.ruby-forum.com/t/disable-application-layout/162434/1 "2009-03-09T23:43:22Z")

</div>

I have created an application layout for the whole application…thing  
is I am now building my admin side and I don’t want to use the same  
layout. how can I change the application layout if the user is in the  
admin back end…I am assuming some sort of render to render a different  
layout.

Thx in advance.

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [March 10, 2009, 2:12am UTC](https://www.ruby-forum.com/t/disable-application-layout/162434/2 "2009-03-10T02:12:41Z")

</div>

On Mar 9, 2009, at 15:41 , Chris G. wrote:

> I have created an application layout for the whole application…thing  
> is I am now building my admin side and I don’t want to use the same  
> layout. how can I change the application layout if the user is in the  
> admin back end…I am assuming some sort of render to render a  
> different  
> layout.

please ask in the ruby on rails list/forum.

---

<div class="post-metadata">

**Author:** ![farfignugen](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/f17d59/32.png) [@farfignugen](https://www.ruby-forum.com/u/farfignugen)\
**Post date:** [March 10, 2009, 2:36am UTC](https://www.ruby-forum.com/t/disable-application-layout/162434/3 "2009-03-10T02:36:04Z")

</div>

create new layout and add the code below right under your controller  
if your new layout`s name is admin  
layout ‘admin’
