title: undefined method `role?' for nil:NilClass
body: <p>I am trying to use CanCan on my rails application. I followed the same tutorial that I used previously on my other project and got this working. My following set up is as followed: </p>
  
  <p>It seems that when I try to access my application I am given </p>
  
  <pre><code>undefined method `role?' for nil:NilClass
  </code></pre>
  
  <p>which points to the following line of my <code>application/layout.html.erb</code></p>
  
  <pre><code>  &lt;% if @user.role? :administrator %&gt;
  </code></pre>