app/helpers/sessions_helper.rb
# Logs in the given user.
Logs in the given user.
Logs in the given user .
def logout
    forget(current_user)
    session.delete(:user_id)
    @current_user = nil
  end
def logout forget ( current_user ) session . delete ( :user_id ) @current_user = nil end
Logs in the given user.
Logs in the given user .