I'm 3 months into learning Rails. Trying to add Facebook auth to a Hartl tutorial sample app clone.
I'd like to still allow users to create accounts w/o FB... though I'm open to suggestions on that. I want the FB login to happen instantly, without users having to enter a password.
I've been using the relevant Railscasts (#235-236, etc.) but Ryan uses devise, and I don't want to. In fact, I find the complexity of his solution a good argument for authentication from scratch.
My current bug (after saving a user without validation) is "Password digest missing on new record" and seems to be caused by this. What are my options?
- I'm tempted to just add a random password_digest but feel a little dirty about that. Should I?
- Should I rewrite the sign_in function? What exactly needs to happen in it? Maybe I don't fully understand the lifecycle of Hartl's remember_token...
- Is there anything else I'm missing?
My code is up on Github.
Thanks!