title: Using the session variable in my view
body: <p>I've been told that I shouldn't use variables such as <code>params[:user_id]</code> in my view files. Does the same rule apply to the <code>session</code> variable? </p>
  
  <p>If not, then what should I be doing? Assign it to an instance variable first and then use that in the view? This seems annoying as I would have to do it for each of my actions. I guess I could put this repetitive code in one method which gets called by all the other actions in that class.</p>