title: Rails accessing variable outside Devise controller
body: <p>I am trying to access a variable passed in when a user (using Devise) signs in or signs out.</p>
  
  <p>So I have edited the Devise Sessions controller (<code>/controllers/devise/sessions_controller.rb</code>) to setup a variable when a user logs in / out:</p>
  
  <pre><code>def create
  @signed_in_token = "something"
  </code></pre>
  
  <p>However I now want to access this variable in <code>/views/layouts/application.html.erb</code>. It doesn't seem to be showing up...</p>