Home > Articles > Programming > Ruby

  • Print
  • + Share This
This chapter is from the book

Common Student Questions

These are actual questions that real students have asked when doing this exercise.

How do you get colors in your editor?

Save your file first as a .rb file, such as ex1.rb. Then you’ll have color when you type.

I get ruby: No such file or directory – ex1.rb (LoadError).

You need to be in the same directory as the file you created. Make sure you use the cd command to go there first. For example, if you saved your file in lrthw/ex1.rb, then you would type cd lrthw/ before trying to run ruby ex1.rb. If you don’t know what any of that means, then go through Appendix A.

  • + Share This
  • 🔖 Save To Your Account