Michael Siebert
2006-Jul-24 14:36 UTC
[Backgroundrb-devel] require file from /lib in a worker
Hello, i need to require a file located in /lib from a worker class, but when i try to start the backgroundrb server, i get something like d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:21:in `require__'': no such file to load -- ./lib/office_thumnail_generator.rb (MissingSourceFile) i tried it with and without lib, with RAILS_ROOT, nothing worked, altough the paths look good for me, but ruby wont find the file any suggestions? greets -- Michael Siebert <info at siebert-wd.de> www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060724/aa568557/attachment.html
Ezra Zygmuntowicz
2006-Jul-24 16:34 UTC
[Backgroundrb-devel] require file from /lib in a worker
On Jul 24, 2006, at 7:36 AM, Michael Siebert wrote:> lib/office_thumnail_generator.rbMichael- Try it like this, in your script/backgroundrb/start file add this line : require "#{RAILS_ROOT}/lib/office_thumnail_generator.rb" Make sure you make this change to the start script up in the main rails app and not the plugin. That should work fine I do the same thing. Let me know if you still have issues Cheers- -Ezra -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20060724/eee05aaa/attachment.html