In the start menu, enter "Advanced system settings" (admin is required). Click the Advanced tab and click the Environment Variables button. In the System Variables section, find the variable named path and double-click it. In the value of the variable, go to the end and put a semicolon at the end if it is not ready. And enter the path to your ruby installation.
source share