I have a folder full of ruby files, and when I try and require one file in another that is in the same directory using require 'file'
I get a LoadError
but when I use require './file'
everything works fine. Can somebody explain to me why this happens and if there is any way I can require a file without adding a ./
onto the file?
(Picture of directory):