Forum: Ruby Disable Application Layout?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
7759594c66801d6f311ff38fd3ddef2a?d=identicon&s=25 Chris Gunnels (ballhogjoni)
on 2009-03-09 23:43
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.
5a837592409354297424994e8d62f722?d=identicon&s=25 Ryan Davis (Guest)
on 2009-03-10 02:12
(Received via mailing list)
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.
43ab97fb1e3407725cca098ce76c4715?d=identicon&s=25 Rustam Mamat (rustam)
on 2009-03-10 02:36
(Received via mailing list)
create new layout and add the code below right under your controller
 if your new layout`s name is admin
layout 'admin'
This topic is locked and can not be replied to.