title: Devise - current_user nil on post request
body: <p>I know i had this working before, but for some reason the current_user method call in one of my create actions keeps returning nil. It works fine when used in other controller and so forth, such as a side panel to show my username.</p>
  
  <pre><code>class CombatInstancesController &lt; ApplicationController
    def create
      # when creating a new instance, check if the current user has one and destroy it
      CombatInstance.find(current_user.combat_instance.id).destroy if current_user.combat_instance
      # Now create the new one
      render :json =&gt; current_user.create_combat_instance
    end
  
    def update
      @combat_instance = current_user.combat_instance
      @combat_instance.trigger_actions(params[:actions])
      @combat_instance.perform_ai_actions
      @combat_instance.save # should we instead call this in an after hook?
      render :json =&gt; @combat_instance
    end
  end
  </code></pre>
  
  <p>The line <code>CombatInstance.find(current_user.combat_instance.id).destroy if current_user.combat_instance</code> is where current_user returns nil. The workflow is: I go to the home page, i login just fine. I can see my username at the top, which is generated using the current_user helper in the view. However, when i submit a form that hits the create action here, it returns nil.</p>