From: Glenn Gillen Date: 2006-11-10T01:32:35+09:00 Subject: Re: Ruby on Rails - Multiple Controllers in a page? On 11/9/06, Kev wrote: > Hi all, > > I am building a site, and I wish to populate the navigation dynamically > from a MySQL db table, and the page content from a different table. > > The idea being I can have the navigation on every page, and use > different controllers to select different content depending on what is > needed. Options that immediately come to mind: a) Have the controllers load the data from the relevant sections into instance variables which are then passed to the views for processing. Menu stuff being handled by a layout, controlled specific by the view for the specific action you are undertaking b) Make the menu a seperate component (http://wiki.rubyonrails.com/rails/pages/Components) Hope that helps, Glenn