title: How does sign_in_and_redirect in devise work?
body: <pre><code>if @user.persisted?
        sign_in_and_redirect @user, :event =&gt; :authentication #this will throw if @user is not activated
        set_flash_message(:notice, :success, :kind =&gt; "Facebook") if is_navigational_format?
  else
        session["devise.facebook_data"] = request.env["omniauth.auth"]
        redirect_to new_user_registration_url
  end
  </code></pre>
  
  <p>This method is present in the <code>facebook omniauth callbacks controller</code>. The problem that I am facing is that I do not get the user's phone number from facebook and thus <code>@user</code> is not a valid object (I have a <code>validation</code>). So, I want to redirect the user to another page where I can ask for the phone number.</p>
  
  <p>How can I modify the sign_in_and_redirect @user to redirect me to that page and not the root url.</p>