title: Rails devise create a related object after new user is created?
body: <p>Using Rails 4.1 and Devise 3.0.3, how can I create an associated object on User when User is instantiated and connect the two?</p>
  
  <pre><code>def User
    has_one :case
  end
  def Case
    belongs_to :user
  end
  </code></pre>
  
  <p>In this case, User is set up with devise.</p>
  
  <p>What I'd like to do is instantiate an object like so:</p>
  
  <pre><code>  @case = Case.new
    current_user.case = @case
  </code></pre>
  
  <p>or</p>
  
  <pre><code>  current_user.case &lt;&lt; @case
  </code></pre>
  
  <p>How can I execute this code when a request is made to "registrations#new"?</p>