I have a Windows and I'm using Ruby 1.9.1-p429, and it won't allow me to view my test.rb file on cmd when i type cd. I'll go through step-by-step of what I did.
I saved a test .rb file on Sublime to my desktop. I open cmd and type "cd", expecting it to list the test.rb file, as the About.com tutorial said it would. Nothing shows up.
I go to the files on my desktop and open it. It says I need a program to open it with. I try opening it with Ruby Interactive. Nothing. The same thing happens when i try to open it with cmd. Now all the save files try to open it with cmd.
cdmeans "change directory", and only is used to change from one directory and make another the default directory.
diris the command used to list files.
cddoesn't list files -