First time here? Check out the Help page!
You need to keep the "ruby" part of the command as that is the program being executed. Otherwise it thinks you simply want to view the ruby script in a text editor. Also, rather than deviating from the ResStock instructions, I would suggest you issue the command as specified (ruby resources/run_sampling.rb ...
) from the parent directory to the resources directory.