From: Chris Carter Date: 2007-04-15T14:39:24+09:00 Subject: Re: using 'require' On 4/14/07, Jeff wrote: > On Mar 2, 4:12 pm, Peter Bailey wrote: > > That worked, Tim. Thanks. I just put my file into ../ruby/lib/1.8. Cool. > > > > -- > > Posted viahttp://www.ruby-forum.com/. > > Matz, if you're out there -- could 1.9 change the default behavior of > 'require' and 'load' to always include the current directory '.' in > the searchpath? > > I ask because threads like this one seem to come up a lot, especially > for those of us new to Ruby, and it makes me think that it justifies a > change in how the searchpath works. > > Thanks! > Jeff > softiesonrails.com > > > On my machine '.' is in the loadpath. saurasaurusrex:~ cdcarter$ ruby -e "p $:" ["/usr/local/lib/ruby/site_ruby/1.8", "/usr/local/lib/ruby/site_ruby/1.8/i686-darwin8.7.1", "/usr/local/lib/ruby/site_ruby", "/usr/local/lib/ruby/1.8", "/usr/local/lib/ruby/1.8/i686-darwin8.7.1", "."] also: http://pastie.caboo.se/53939 -- Chris Carter concentrationstudios.com brynmawrcs.com