Hi,
I’m developing a dashboard like page and basically want to combine the
result of multiple actions on a page. I’ve done this so far:
def index
r1 = render_to_string :action => “action1”
r2 = render_to_string :action => “action2”
render :text => r1+r2
end
This works, but now I want to render from other controllers and this is
where I’m stuck. So in my current controller lets call it “Dashboard”,
I want to render content from a controller called “HumanResources” and
another controller called “Marketing”. I tried this:
def index
r1 = render_to_string :action => “human_resources/action”
r2 = render_to_string :action => “marketing/action”
render :text => r1+r2
end
This doesn’t work. Any ideas on how from one controller I can get the
output of another controller and include it in the calling controllers
output.
Thanks in advance, scott.