Rails 4 Devise + Omniauth
I have a question about using Omniauth + Devise. In the past I have used
Omniauth to be able to sign a user in with Twitter and it worked correctly
(started a new session and created a new user based on Twitter creds).
Then I tried using Devise on its own and it works!
Now when I go to combine the two, I'm running into some errors. Doing it
the way I did before made more sense to me because I could create a user
controller + model and it made sense.
I understand that I don't have Facebook set up yet (that seems like a
similar but different beast), but for right now, based on my
understanding, I should be able to sign in with my Twitter username and it
say "You signed in!" and display my username where it says "Logged in as
<%= current_user.username %>.".
Also, on a slightly separate note, I would love to know why "flash.notice"
isn't working for me. Is that deprecated in Rails 4 or am I missing
something in my application.html.erb file for them to show?
Here is the code I'm currently working with.
https://github.com/erosenberg/devise-app
No comments:
Post a Comment