Theme overrides

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.
[email protected]
www.kyleheon.com

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

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.
[email protected]
www.kyleheon.com

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs