Let Rm = Fq[y]=hym 1i, where m j q 1. In this paper, we obtain the structure of linear and cyclic codes over Rm. Also, we introduce a preserving-orthogonality Gray map from Rm to Fmq . Among the main re- sults, we obtain the exact structure of self-orthogonal cyclic codes over Rm to introduce parameters of quantum codes from cyclic codes over Rm.