application.rhtml multiple render/include output from different controllers

0 views
Skip to first unread message

sTb

unread,
Apr 8, 2007, 12:19:24 PM4/8/07
to Ruby on Rails: Talk
i have cms_controller.rb and project_controller.rb
default layout is application.rhtml
default route is to cms/showid/1

i also want to inlclude project/list2 (little table of my latest work)
at application.rhtml even when the url is cms/..../... how can i
"include/render" the project/list2 "output/render" into
application.rhtml no matter what url/controller is called?

i already tried <% render :controller => "project",action => "list2"
%> ?

Hopefully you got my point.

thanks for your help!

regards sTb

sTb

unread,
Apr 8, 2007, 1:27:09 PM4/8/07
to Ruby on Rails: Talk
okay application.rb ive got it ;>
Reply all
Reply to author
Forward
0 new messages