Newtons universal law of gravitation states that
$$F=\dfrac{GMm}{d^{2}}$$
where $d$ is the distance between the center of mass of the two masses. Now a ring's center of mass is not in the ring. So if we put a sphere's center of mass in the ring's center of mass, then $d=0$ and gravitational force will be infinite. This isn't right. So where am I wrong?
Please comment if I couldn't make my question clear enough.