If I put @fname = session[:user].first_name in the initialize method of
a controller, I get nil ojbect error. However, when I put the exact
same code in the template called by that controller (hard-coded
initialize to get past error) such as <%= session[:user].first_name %>
it works just fine.
Also, in the ‘Show Session Dump’ of the error page reporting the nil
object, the user attribute of ‘first_name’ is there
What would cause initialize of a controller to not be able to see