Active Rbac and Rails 1.99.1

3 views
Skip to first unread message

Feurio

unread,
Nov 30, 2007, 8:59:22 AM11/30/07
to active-rbac
Hi Everybody,

just tried to get Active Rbac 0.5 working with the new Rails 2.0 RC2.

I installed the plugin and started my mongrel.
Changed into my browser and typed "localhost:3000" and got the
following error message:

undefined method `acts_as_current_user_container' for
ApplicationController:Class

For me it seems as if the initializing of the active_rbac plugin
failed somehow.
As I understand it init.rb in the vendor/plugins/active_rbac should be
loaded automatically from the rails framework. init.rb itself requires
active_rbac.rb.
By this all the base classes should be extended with the active_rbac
functionality.

... the problem is that it does not work.

If I put everything from active_rbac.rb into my application.rb
everything seems to work.
Of course this is not the place to put it. Better would be to get it
working via init.rb.

Has somebody an ideas, what the problem could be?

Feurio

Feurio

unread,
Dec 3, 2007, 2:46:11 AM12/3/07
to active-rbac
Is there really nobody who has an idea?

Feurio

Andy Koch

unread,
Dec 3, 2007, 12:45:45 PM12/3/07
to active-rbac
Hi,

haven't tried rbac on RoR 2 yet, but the bit about copying
active_rbac.rb into application.rb sounds odd to me.

I only placed...

require_dependency 'user'
require_dependency 'role'
require_dependency 'static_permission'

at the top of application.rb
Reply all
Reply to author
Forward
0 new messages