This works for my rack application:

$: << File.expand_path(File.dirname(__FILE__))

require "some_file"
....

However if I comment this out the first line, i.e.

# $: << File.expand_path(File.dirname(__FILE__))

then the file some_file.rb cannot be found and web-server (mongrel)
complains.

How can I adjust the path at the system level where I don't have to put
the line:

$: << File.expand_path(File.dirname(__FILE__))

at the top of each ruby file that requires some other ruby file?

Thanks for your time.

Bharat

-- 
Posted via http://www.ruby-forum.com/.