Theme overrides


#1

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 H.
removed_email_address@domain.invalid
www.kyleheon.com


#2

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


#3

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 H.
removed_email_address@domain.invalid
www.kyleheon.com


#4

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.