From: itsme213 Date: 2005-10-23T01:22:00+09:00 Subject: Re: Getting a file location and name... From http://extensions.rubyforge.org/rdoc/classes/Kernel.html # File lib/extensions/kernel.rb, line 38 def require_relative(path) require File.join(File.dirname(caller[0]), path.to_str) end Then simply: require_relative "common" or require_relative "../../foo/bar/common" "Joe Van Dyk" wrote in message I'm having problems with the relative directory part.