app/controllers/sessions_controller.rb
# Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead
def destroy
        logout_killing_session!
        flash[:notice] = "You have been logged out."
        redirect_back_or_default('/')
    end
def destroy logout_killing_session! flash [ :notice ] = "You have been logged out." redirect_back_or_default ( '/' ) end
Be sure to include AuthenticationSystem in Application Controller instead
Be sure to include AuthenticationSystem in Application Controller instead