I do login authentication with google in rails app,I had problem with when I logout it will redirect to my index page but can not able to logout from google account
I was doing first time login authentication,Please can any one help me
Thank you in advance
Here I write my code where i was wrong
def create
@user = Authentication.find_or_create_from_auth_hash(request.env["omniauth.auth"])
session[:user_id] = @user.id
redirect_to '/'
end
def destroy
session[:user_id] = nil
redirect_to '/login'
end