AuthenticatedSystem Error

30 views
Skip to first unread message

Josh Schairbaum

unread,
Jul 11, 2008, 9:14:49 AM7/11/08
to comatos...@googlegroups.com
I'm using the Uber-Alpha Comatose 2.0 with a completely empty Rails
2.1 generated application. Comatose is at the root. I've also
generated a fresh authentication system using restful_authentication.

Every time I try to load a page in either the admin section or show
one of my pages, I can do one request and then I get the following
error:

"A copy of AuthenticatedSystem has been removed from the module tree
but is still active!"

Any ideas?

Here is my config:

Comatose.configure do |config|
# Includes AuthenticationSystem in the ComatoseController
config.includes << :authenticated_system

# admin
config.admin_title = "Comatose CMS"
config.admin_sub_title = "blah"

# Includes AuthenticationSystem in the ComatoseAdminController
config.admin_includes << :authenticated_system
config.helpers << :users_helper

# Calls :login_required as a before_filter
config.admin_authorization = :login_required
# Returns the author name (login, in this case) for the current user
config.admin_get_author do
current_user.login
end
end

Kray

unread,
Sep 1, 2008, 6:22:41 AM9/1/08
to Comatose Plugin
Just sorted this problem myself, and thought I'd post here in case
anyone else was having troubles.

Using the Uber-Alpha, Add 'unloadable' to line 3 of
comatose_admin_controller.rb

i.e.

# The controller for serving cms content...
class ComatoseAdminController < ActionController::Base
unloadable
define_option :original_template_root, nil


Not sure if this is worth submitting as a patch.



On Jul 11, 2:14 pm, Josh Schairbaum <mailing-
Reply all
Reply to author
Forward
0 new messages