From: Phillip Gawlowski Date: 2011-09-21T04:26:03+09:00 Subject: Re: require command On Tue, Sep 20, 2011 at 9:14 PM, Aya Abdelsalam wrote: > Hello > I am using ruby192 and when ever i use "require" to load another saved > module it doesn't work how ever "load" works perfectly > Why is that? Probably because you are trying to require a file in or from within (via "my/file/path") the current working directory (aka '.') > How can i fix this? require_relative "my_file" require_relative "my/file/path" > and will this affect my code when i > start using gems? Gems are in the gem search path of RubyGems, so: No, it won't. -- Phillip Gawlowski gplus.to/phgaw | twitter.com/phgaw A method of solution is perfect if we can forsee from the start, and even prove, that following that method we shall attain our aim.               -- Leibniz