Ray: It is defined as path of light or geometric optics. It is a straight line in homogenous system.
Beam: It is defined as collection of rays. A bundle of rays make beam. https://www.expertsmind.com/physics/ray-optics-homework-assignment-help.aspx