What is the difference between require_relative and require in Ruby?
Just look at the docs:
require_relativecomplements the builtin methodrequireby allowing you to load a file that is relative to the file containing therequire_relativestatement.For example, if you have unit test classes in the "test" directory, and data for them under the test "test/data" directory, then you might use a line like this in a test case:
require_relative "data/customer_data_1"