[typo] Theme overrides

Kyle Heon kheon at comcast.net
Wed Mar 15 22:42:52 EST 2006


I am already overriding the "read" view as it is. What I need to do now is
also override the over arching layout. I have a layout named default that is
used for everything currently, but now I want to create a different layout
for the article detail.

Kyle Heon
kheon at comcast.net
www.kyleheon.com


-----Original Message-----
From: Kevin Ballard [mailto:kevin at sb.org] 
Sent: Wednesday, March 15, 2006 10:05 PM
To: kheon at comcast.net; typo-list at rubyforge.org
Subject: Re: [typo] Theme overrides

It's called a view, not a layout. Try looking along those lines.

On Mar 15, 2006, at 4:45 PM, Kyle Heon wrote:

> Forgive me if this is a dumb question but how does one override the 
> layout at the controller level when using a theme?
>
> I want to create a different layout for the article detail (the read 
> action).
>
> I've tried using the following without any luck:
>
> render :layout => "read"
> render :layout => "layouts/read"
>
> Thanks in advance.

--
Kevin Ballard
kevin at sb.org
http://kevin.sb.org
http://www.tildesoft.com





More information about the Typo-list mailing list