I’ve developed an application with JRuby, and would like to package it
I have this structure of directories
/bin/dashboard.rb -> script to be executed
/lib/ -> all jars are in here, some under sub-directories
/models/ some activerecord models
In the script, running fine when launched from the terminal, I have this
and when I print the value of $: before requiring a model I have this
included in the output:
but the model file is not found:
LoadError: no such file to load – picture
However, when I put it under the /lib directory, it is found.
But the lib directory is not included in the ouput of puts $: …
I’d like to understand what is going on, so I can require my models. Can
anyone explain it?