I am using Devise and I have it so a User clicks "log in with facebook"
. Once they confirm this, it then takes them to the registration url "http://0.0.0.0:3000/users/sign_up"
.
In here I then populate the name and email fields with the ones I got from Facebook. They now just have to pick a password to sign up. I also want to save the user's Facebook UID and their Facebook url.
How do I pass this into my User model once the user clicks on the sign up button? (I updated my model to include these extra fields).
Edit: I currently also store their Facebook hash data in a session that I got from Ominauth so that I can retrieve it later.