Installing Ruby on windows machine is very easy.
Firstly, you need to download Ruby’s latest version from Ruby’s official site. Go to Ruby’s official site. Here you find a zipped file. Download it.
After download the ruby latest version zip file, please unzip it. After unzip, you will get a folder. There are some files in it. Here you have to search for the ruby2.6.3.exe file.
You may have different versions available at the time of installation
Double-click on the Ruby1.6.7.exe file. You will see the Ruby installation wizard.
To move to the important information page of the wizard, click Next and continue running until the Ruby installer completes installing Ruby.
If your installation did not setup them properly, you might need to set some environment variables.
add the following lines to your c:\autoexec.bat: set PATH = “D:(ruby install directory)\bin;%PATH%”
After the installation, check everything is working properly by entering the following commands on the command-line –