sTb
2007-Apr-08 16:19 UTC
application.rhtml multiple render/include output from different controllers
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
sTb
2007-Apr-08 17:27 UTC
Re: application.rhtml multiple render/include output from different controllers
okay application.rb ive got it ;> On 8 Apr., 18:19, "sTb" <steffenbrun...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---