Hi, I like to create a portal like site with alot of different sidebars. A bit like yahoo.com for example. Is it possible to render a view / layout with data from different controllers / actions. A search on the net brought no solution. Thanks -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Matt Westcott
2008-May-07 23:17 UTC
Re: Multiple controllers / actions in one view / layout
On May 7, 6:09 pm, Rails Starter <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I like to create a portal like site with alot of different sidebars. > > A bit like yahoo.com for example. > > Is it possible to render a view / layout with data from different > controllers / actions.It sounds like partials are what you need. The API docs cover them quite nicely... http://rails.rubyonrails.com/classes/ActionView/Partials.html - Matt --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---