using layout of different controller

How could I use the layout of a different controller?

Thanks

class MyController < ActionController::Base       layout "myotherlayout"       .......... end

will use app/view/layouts/myotherlayout.html.erb file

Hubert Łępicki wrote:

class MyController < ActionController::Base       layout "myotherlayout"       .......... end

will use app/view/layouts/myotherlayout.html.erb file

Sweet, seems like that works, but in my layout I'm rendering partials that are in a different controller as well, how do I go about that?

Thanks

Justin To wrote:

Hubert Łępicki wrote:

class MyController < ActionController::Base       layout "myotherlayout"       .......... end

will use app/view/layouts/myotherlayout.html.erb file

Sweet, seems like that works, but in my layout I'm rendering partials that are in a different controller as well, how do I go about that?

Thanks

In the layout, instead of saying <%= render :partial => 'apple_partial' %>

use this instead: <%= render :partial => 'apples/apple_partial' %>

where "apples" is the name of the view folder that the partial is in.

HTH, Joe