Rails Authentication with OAuth 2.0 and OmniAuth

Hey bodrovis, are you sure the logout does work exactly as expected? Because these, people, have same problem. But I’m one step near to solving it. I changed the code to

`if current_user
   session.delete(:user_id) if session[:user_id]
   # flash[:success] = 'See you!'
   redirect_to root_url
 end`

by putting redirect_to root_url inside if condition. It showed missing template and I created destroy.html.erb. And I was actually logged out. But when I visit the root_path again (not by clicking back button), I was auto logged in. Whats happening?