From: Svin Svin Date: 2010-04-30T04:01:37+09:00 Subject: Re: Ruby require local file problem > Simple: you're trying to require 'foo' from a directory that is not > the current one. > > If both test.rb and foo.rb are located in the same directory, doing > "ruby path\to\test.rb" will not be able to find foo in the same path. > > Now, if you CD into the directory test.rb and foo.rb are located, > require 'foo' will succeed, since the current directory is in the > $LOAD_PATH. > > That helps? Thanks, it helps! Why it's so different from python/java :( -- Posted via http://www.ruby-forum.com/.