Use require_relative to require files that exist within your project
When you use require
to load a file, ruby must search your $LOADPATH. If the file you need to load exists within your project, you can (should) use `requirerelative`.
See: http://www.ruby-doc.org/core-1.9.3/Kernel.html#method-i-require_relative
Written by Tad Hosford
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Related Tags
#ruby
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#