Disable Application Layout?

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.

···

--
Posted via http://www.ruby-forum.com/.

please ask in the ruby on rails list/forum.

···

On Mar 9, 2009, at 15:41 , Chris Gunnels 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.

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

···

On Tue, Mar 10, 2009 at 10:09 AM, Ryan Davis <ryand-ruby@zenspider.com>wrote:

On Mar 9, 2009, at 15:41 , Chris Gunnels 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.