# Dispatch.cgi -\> Anonymous modules have no name

**URL:** <https://www.ruby-forum.com/t/dispatch-cgi-anonymous-modules-have-no-name/84397>\
**Category:** Rails\
**Created:** [February 4, 2007, 1:10am UTC](https://www.ruby-forum.com/t/dispatch-cgi-anonymous-modules-have-no-name/84397 "2007-02-04T01:10:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [February 4, 2007, 1:10am UTC](https://www.ruby-forum.com/t/dispatch-cgi-anonymous-modules-have-no-name/84397/1 "2007-02-04T01:10:29Z")

</div>

I upgraded to Rails 1.2.1 and deployed to my ISP, who has 1.2.1 ready  
and waiting.

The site disappeared into an HTTP 500 error.

So I get into the site, run public/dispatch.cgi or dispatch.rb, and get  
this:

# ./dispatch.rb

Status: 400 Bad Request  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active\_support/dependencies.rb:405:in  
`to_constant_name': Anonymous modules have no name to be referenced by (ArgumentError) from /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active_support/dependencies.rb:215:in `qualified\_name\_for’  
from  
/usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.0/lib/active\_support/dependencies.rb:477:in  
`const_missing' from /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:117:in `reset\_after\_dispatch’  
from  
/usr/local/lib/ruby/gems/1.8/gems/rails-1.2.1/lib/dispatcher.rb:51:in  
`dispatch’  
from ./dispatch.rb:10

Google has a few hits for that, and one of them tells me to do this:

rake rails:update

Well, that crunched a whole lot of my code (I had been wondering how  
to upgrade the site-side code to a new Rails…). But it didn’t fix  
the problem. I can also reproduce the same problem on my development  
workstation.

One big irritation is dispatch.rb:10 doesn’t have an anonymous module,  
it has Dispatcher, which is imported just a few lines above.

What’s going on??

–  
Phlip  
[http://c2.com/cgi/wiki?ZeekLand](http://c2.com/cgi/wiki?ZeekLand) ← NOT a blog!!

---

<div class="post-metadata">

**Author:** ![Phlip](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/ed8c4c/32.png) [@Phlip](https://www.ruby-forum.com/u/Phlip)\
**Post date:** [February 4, 2007, 5:07am UTC](https://www.ruby-forum.com/t/dispatch-cgi-anonymous-modules-have-no-name/84397/2 "2007-02-04T05:07:48Z")

</div>

> # ./dispatch.rb
> 
> Status: 400 Bad Request

We figured it out. dispatch.rb is supposed to do that, but its  
permissions  
must be exactly 755…
