# 1.2RC2: Help With Controller Anonymous Modules and Namespace

**URL:** <https://www.ruby-forum.com/t/1-2rc2-help-with-controller-anonymous-modules-and-namespace/81469>\
**Category:** Rails\
**Created:** [January 9, 2007, 4:47am UTC](https://www.ruby-forum.com/t/1-2rc2-help-with-controller-anonymous-modules-and-namespace/81469 "2007-01-09T04:47:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [January 9, 2007, 4:47am UTC](https://www.ruby-forum.com/t/1-2rc2-help-with-controller-anonymous-modules-and-namespace/81469/1 "2007-01-09T04:47:23Z")

</div>

Since testing with 1.2RC2, some of my controllers do not run and  
instead return this:

Fri Jan 05 08:16:46 -0800 2007: Error calling Dispatcher.dispatch  
#\<ArgumentError: Anonymous modules have no name to be referenced by\>

I assume that this is something akin to not following a best practice  
and it is finally coming back to haunt me. I have no trouble changing  
things up but I’m not totally sure what to do.

I have a controller called ‘admin\_area\_controller.rb’ that is in app/  
controllers/admin/.

It looks like this:

class Admin::AdminAreaController \< ApplicationController  
…blah…  
end

So, I assume this is some kind of module name-space thing? It worked  
in 1.0 and 1.1.

What changes would be required for it to work with 1.2?

Can anyone help with this?

Thanks,  
Hunter

---

<div class="post-metadata">

**Author:** ![hunter\_h](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/bc79bd/32.png) [@hunter\_h](https://www.ruby-forum.com/u/hunter_h)\
**Post date:** [January 9, 2007, 6:46am UTC](https://www.ruby-forum.com/t/1-2rc2-help-with-controller-anonymous-modules-and-namespace/81469/2 "2007-01-09T06:46:31Z")

</div>

Hi, you’ll need to do the following:

a) update RAILS\_GEM\_VERSION variable in the environment.rb file to  
have the correct version of rails. If you’re using 1.2 RC 2, the  
variable should be set to 1.1.6.5848

b) execute ‘rake rails:update’ in the root of your rails app

Good luck,

-Conrad
