Quantcast
Channel: Active questions tagged require - Stack Overflow
Viewing all articles
Browse latest Browse all 59

How to require a Ruby file from another directory

$
0
0

I want to require a Ruby file in another file. These two files are in two different directories. I have require second_file at the top of the first file. Ruby says it can't load such file. Is that because it's in a different directory? I tried writing the full path to the second file but it still can't load the file.

How can I load the second file into the first?


Viewing all articles
Browse latest Browse all 59

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>