Ruby running error

I am new to ruby . I did installed ruby and all its packages. Now i am using atom in order to write my code and also installed Atom runner. My problem is when i try to run the file i have it shows me this error message.

Unable to find command: ruby
Are you sure PATH is configured correctly?

ENV PATH: C:\Program Files (x86)\Google\Chrome\Application;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Git\cmd;C:\Users\Admin\AppData\Local\Programs\Python\Python38-32\Scripts;C:\Users\Admin\AppData\Local\Programs\Python\Python38-32;C:\Users\Admin\AppData\Local\Microsoft\WindowsApps;C:\Program Files\JetBrains\PyCharm Community Edition 2019.3\bin;c:\ Program Files\JetBrains;C:\Users\Admin\AppData\Local\Programs\Microsoft VS Code\bin;C:\php;C:\xampp\mysql\bin;

Error: spawn ruby ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:232:19)
at onErrorNT (internal/child_process.js:407:16)
at process._tickCallback (internal/process/next_tick.js:63:19)


i do not know what seems to be the error or how to fix it !!

First off, running it in Atom with the Atom runner extension may or may not work as good as running it in terminal or another IDE / editor. as for the error, Windows does not add the Ruby bin to the path automatically. you need to add the Ruby bin to the SYS/ USER PATH variable manually. Maybe install Ruby on Mac / Linux. they are more likely to add it to the PATH automatically.

thank you i will try out your suggestion.