# Sudden NameError after things were working

**URL:** <https://www.ruby-forum.com/t/sudden-nameerror-after-things-were-working/91931>\
**Category:** Rails\
**Created:** [April 13, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/sudden-nameerror-after-things-were-working/91931 "2007-04-13T15:29:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![simon1](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/fbc32d/32.png) [@simon1](https://www.ruby-forum.com/u/simon1)\
**Post date:** [April 13, 2007, 3:29pm UTC](https://www.ruby-forum.com/t/sudden-nameerror-after-things-were-working/91931/1 "2007-04-13T15:29:34Z")

</div>

Hi,

I am using BackgrounDRb, and have one worker class, parser\_worker.rb.  
I generated this, added code to the do\_work method, and was creating  
the workers succesfully from within my rails app. Then I changed a  
bit of code in the function that creates the worker, and in the  
worker’s do\_work method. I restarted BackgrounDRb and then restarted  
WEBrick. Now when I hit the line of code that creates the worker  
(which wasn’t changed at all) I receive the following error:

NameError (uninitialized constant ParserWorker):  
(drbunix:///tmp/backgroundrbunix\_localhost\_2000) /usrlib/ruby/  
gems/1.8/activesupport-1.3.1/lib/active\_support/dependencies.rb:100:in  
‘const\_missing’

All I did was change some code within a functioning framework. Does  
anybody have an idea of what the issue may be?

Thanks,

Simon
