Running latest Ruby in Windows 7.
I want to be able to be able to execute code from cmd by just typing code.rb Right now I have to type ruby code.rb
Also, when I double click the code.rb file, a command prompt briefly pops up and then closes - too quick for me to read what it says.
I have tried associating .rb with ruby.exe using ftype to no avail.
Any help?