Disable Application Layout?


#1

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.


#2

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.


#3

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