<div class="moz-text-plain" style="font-family: -moz-fixed; font-size: 12px;" lang="x-western"><pre>I have the next including files structure :<br><br> - controller fileaA.rb including line (#8): require "fileB"...
<br> - /lib/fileB.rb with main header: load 'backgroundrb/worker.rb'<br> load 'backgroundrb/<br>worker_rails.rb'<br> class FileB <
<br>BackgrounDRb::Worker::RailsBase<br> ........................................................................<br> and on line #72: FileB .register
<br>when I restart my lighttpd web server , at the first loading of the<br>controller it rise the next error:<br><br>You have a nil object when you didn't expect it!<br>You might have expected an instance of Array.<br>
The error occured while evaluating nil.include?<br><br>RAILS_ROOT: ......<br>Application Trace | Framework Trace | Full Trace<br><br>#{RAILS_ROOT}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>vendor/plugins/backgroundrb/server/lib/backgroundrb
<span class="moz-txt-tag">/</span></i><br>middleman.rb:158:in `register_worker_class'<br>#{RAILS_ROOT}<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>vendor/plugins/backgroundrb/server/lib/backgroundrb<span class="moz-txt-tag">
/</span></i><br>worker.rb:17:in `register'<br>#{RAILS_ROOT}/lib/fileB.rb:72<br>#{RAILS_ROOT}/app/controllers/fileA.rb:8<br><br>After reloading the page, this error did not rise again , I need help<br>with any idea concerning this behavior of backgroundrb plugin (what is
<br>wrong in my including code or what could generate this error?)<br><br>Thank's<br><br></pre></div>