title: Using Rails find_or_initialize_by_email, how to determine if record if found or initialized?
body: <p>In one of my controllers, I'm doing:</p>
  
  <pre><code>user = User.find_or_initialize_by_email(@omniauth['info']['email'])
  </code></pre>
  
  <p>I then need to know if the records was found or initialized. I had tried this: </p>
  
  <pre><code>if user
  else
  end 
  </code></pre>
  
  <p>But that does not work as there will always be a user. What is the right way to know if find or initialize found or initialized? </p>
  
  <p>Thanks</p>