[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Disable Application Layout?

Chris Gunnels

3/9/2009 10:42:00 PM

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-....

2 Answers

Ryan Davis

3/10/2009 1:10:00 AM

0


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.


rustam mamat

3/10/2009 1:31:00 AM

0

[Note: parts of this message were removed to make it a legal post.]

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.
>
>
>