I have a layout that provides the basic outline of each page in my app.
It has a title, footer and a navigation bar.
In the title I want to put the name of the current user that is logged
I could do something like @session[:username] but I would rather
encapsulate that into a single variable so that I can change the key in
the session map if I want without having to goto each page that uses it.
It seems that a better way would be to use an instance variable like I
have seen @page_title a lot. I dont want to set this in each and every
action so is there a way that I can set it in the super class
Maybe in after_filter? What do you guys do?