app/helpers/sessions_helper.rb
# Logs out the current user.
Logs out the current user.
Logs out the current user .
def sign_out
    cookies.delete(:user_id)
    cookies.delete(:remember_token)
    session.delete(:user_id)
    current_user = nil
  end
def sign_out cookies . delete ( :user_id ) cookies . delete ( :remember_token ) session . delete ( :user_id ) current_user = nil end
Logs out the current user.
Logs out the current user .