Topic: How to make an instance variable available in all templates
I am trying to setup a @user_logged_on variable that all templates can look at and use to choose what content to display. I've already separated things out into different layouts for "visitor" and "user" as much as I can, but there are certain things, like putting a (login, logout, signup, already logged in... list underneath the page banner) that seem to require the templates to display information conditionally.
I would think to put it in the ApplicationController, but I'm not sure how. I'm also a little bit worried that this might not be the best OO / MVC style. If there's a better way please let me know.
Thanks a lot,