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.

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs