title: Overriding routes in the Clearance gem
body: <p>I'm using the clearance gem to add authentication to a rails app. I would like to use a different layout called 'session' with the sessions and passwords controllers. In order to do this I'll need to override the sessions and passwords controllers, but so far I can't get either of them to use my alternative layout.</p>
  
  <p>I've added a sessions controller that inherits from clearance and my layout file is in the correct place.</p>
  
  <pre class="lang-rb prettyprint-override"><code>class SessionsController &lt; Clearance::SessionsController
    layout 'session'
  end
  </code></pre>
  
  <p>I've done the same as above with the passwords controller. Now I add a route that I hoped would override the one that the clearance gem uses:</p>
  
  <pre class="lang-rb prettyprint-override"><code>resource :session, controller: 'sessions'
  </code></pre>
  
  <p>But this has no effect and the application layout is used. How can I use a different layout with these controllers?</p>