From: Chris Thiel Date: 2007-07-26T02:50:53+09:00 Subject: Re: requiring multiple files ------=_Part_156123_19923608.1185385856323 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 7/25/07, rNuby wrote: > > Hi all! > I was wonder how one goes about requireing multiple files. > I have the follow file structure: > Project/ > run.rb > sub/ > go.rb > require_me.rb > > now in run.rb > require 'sub/go' > in go.rb > require 'require_me' > > but when i execute run.rb, it says it can't find require_me.rb > > what are the best ways to set up files and include then in ruby? > > thankx! > > > To clarify on Alex's response, I think that this has something to do with the load path. If it's being set to the Project directory, then trying to require 'require_me' in go.rb won't work, even though the files are sitting in the same directory. If your load path only points to the Project directory, it doesn't find require_me in there and bombs. Chris ------=_Part_156123_19923608.1185385856323--