[Rails] Re: How to access multiple models in a single controller

2010-03-15 Thread Frederick Cheung
On Mar 15, 5:53 pm, richardsugg wrote: > So in my CompanyController, I have functions index, new, edit, create, > show, etc... My understanding is that one of these gets called > depending on the page.  If I'm creating a new company, then the new/ > create is called, etc.  How do I create a func

[Rails] Re: How to access multiple models in a single controller

2010-03-15 Thread richardsugg
So in my CompanyController, I have functions index, new, edit, create, show, etc... My understanding is that one of these gets called depending on the page. If I'm creating a new company, then the new/ create is called, etc. How do I create a function that is called everytime, regardless of the c

[Rails] Re: How to access multiple models in a single controller

2010-03-10 Thread Tim Shaffer
You should be able to access your Company model from any controller. On Mar 10, 2:33 pm, richardsugg wrote: > I am creating a customer database.  The navigation menu will have > sections for supported customers, trial customers, unsupported > customers, etc.  The nav menu will appear on every pag