Forum: Typo Theme overrides

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.
B6efa20772f1404cdd68840e95722891?d=identicon&s=25 Kyle Heon (Guest)
on 2006-03-16 01:47
(Received via mailing list)
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.

Kyle Heon
kheon@comcast.net
www.kyleheon.com
6451ee8093c9cedc94f6c813b4dde2c5?d=identicon&s=25 Kevin Ballard (Guest)
on 2006-03-16 04:09
(Received via mailing list)
It's called a view, not a layout. Try looking along those lines.
B6efa20772f1404cdd68840e95722891?d=identicon&s=25 Kyle Heon (Guest)
on 2006-03-16 04:44
(Received via mailing list)
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@comcast.net
www.kyleheon.com
6451ee8093c9cedc94f6c813b4dde2c5?d=identicon&s=25 Kevin Ballard (Guest)
on 2006-03-16 05:02
(Received via mailing list)
Oh. That would be done at the controller level. I don't think there's
any way to affect this with the current themeing system.
This topic is locked and can not be replied to.