0

I am currently doing a tutorial on ruby and am using the Nitrous.io IDE. I was wondering how I can run a simple ruby app in the console. The lines of code in my test.rb are no more than 5 lines. This website says that I should use "load 'file_name.rb'" but that does nothing. And when I try that on my local computer (Windows), I get "cannot load such file" I have the file located within the same dir and it still does not work. Could someone please help. Thank you in advance! http://tutorials.jumpstartlab.com/projects/ruby_in_100_minutes.html

1 Answer 1

0

To run a ruby file, type in the following command within the terminal (replacing file-name.rb with your actual file):

ruby file-name.rb

If you need to install Ruby on your Nitrous box then you can install this through Autoparts (parts install ruby2.1).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.