Load Path

A

aidy

Hi,

I have a number of a directories on a server: e.g

\\server\ruby\watir

folder1, folder2, libraries #at the same level


I would like file1 and file2 to see the libraries folder.

I have tried entering this:

require '../libraries/all_libs' #all_libs is an .rb file
in a Ruby file in folder1 without success.

Thanks

Aidy
 
A

aidy

Your suggestion works and is very well explained, I think much clearer
than pickaxe.
Hopefully, it will be picked up by Ruby weekly.

Thanks

Aidy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,206
Messages
2,571,069
Members
47,678
Latest member
Aniruddha Das

Latest Threads

Top