title: Rails Devise - current_user is nil
body: <p>For some reason, <code>current_user</code> returns <code>nil</code> in my model-less controller (<code>Subscriptions</code>). I have found  nothing on the Internet to justify this behavior...</p>
  
  <pre><code>class SubscriptionsController &lt; ApplicationController  
    def new
      ...
    end
  
    def create
      current_user    # returns nil
    end
  end
  </code></pre>
  
  <p>I have a csrf meta tag :</p>
  
  <pre><code>&lt;meta content="xxx" name="csrf-token"&gt;
  </code></pre>
  
  <p>I can provide more code, but I'm not sure what would be useful.</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>So thanks to the comments/answers, I have pinpointed the problem to one particular action : <code>create</code>.</p>
  
  <p>if I add <code>@user = current_user</code> to the <code>new</code>, I can show the current user's email in my <code>new</code> view. However, in my <code>create</code> controller, <code>current_user</code> returns <code>nil</code>.</p>
  
  <p>I accessed the <code>create</code> action through a form (submit).</p>
  
  <p>Before the form is submitted, I validate the input and then send a request to Stripe to get a token out of the form. If there are no errors (validation and stripe), I then send the form.</p>
  
  <p>Could that be the cause?</p>
  
  <p><strong>UPDATE 2</strong></p>
  
  <p>In my error message, my session dump is <strong>empty</strong>, while it should contains the current_user info...</p>