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):

If you want to
requirea file not from the system$LOAD_PATHbut rather relative to the directory of the file you arerequireing from, you should userequire_relative. (Which, as you can see, isn’t exactly extensively documented.)