Forum: Ruby on Rails 1.2RC2: Help With Controller Anonymous Modules and Namespace

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
A7db9ec803b5895ae5f916a74e2db329?d=identicon&s=25 Hunter Hillegas (Guest)
on 2007-01-09 04:47
(Received via mailing list)
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/

It looks like this:

class Admin::AdminAreaController < ApplicationController

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?

40db9e75b3f5899258e3bdc0c9210154?d=identicon&s=25 Conrad Taylor (Guest)
on 2007-01-09 06:46
(Received via mailing list)
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

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

Good luck,

This topic is locked and can not be replied to.