Hi,
I’ve developed an application with JRuby, and would like to package it
with
warbler.
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
line:
$:.unshift “#{File.dirname(FILE)}/…/models/”
and when I print the value of $: before requiring a model I have this
like
included in the output:
file:/home/…/dashboard.jar!/src/bin/…/models/
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?
Thanks
Raph