Quaternion rings and octonion rings