How to adjust the path in windows

i set the ruby, and then the pearl of the rails. when i try to start the server using

ruby script/server 

I get an error

 ruby: No such file or directory -- script/server (LoadError) 
0
source share
3 answers

You must first go to the demo directory with the command "cd" and then type

 ruby script/server 

EDIT: in windows it should be

 ruby script\server 
+1
source

Add the folder into which the ruby.exe file is included in the PATH environment variable list:

http://support.microsoft.com/kb/310519

0
source

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.

0
source

All Articles