# Help active rbac!

**URL:** <https://www.ruby-forum.com/t/help-active-rbac/120091>\
**Category:** Deployment\
**Created:** [November 13, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/help-active-rbac/120091 "2007-11-13T17:47:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![malooking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@malooking](https://www.ruby-forum.com/u/malooking)\
**Post date:** [November 13, 2007, 5:47pm UTC](https://www.ruby-forum.com/t/help-active-rbac/120091/1 "2007-11-13T17:47:54Z")

</div>

Hello everyone,

I need your help, i’m tryng to use active rbac plugin, but i dont  
understand how to integrate with my application, if someone knows how,  
please let me know.

I use eclipse rad rails to install that plugin but it says that didn’t  
find that plugin, i download from  
[http://rubyforge.org/frs/?group\_id=2972](http://rubyforge.org/frs/?group_id=2972) and unzip it in vendor/plugins

I create models User, Role and StaticPermission like  
[http://active-rbac.rubyforge.org/docs/005\_acts\_as\_models.html](http://active-rbac.rubyforge.org/docs/005_acts_as_models.html)  
says and generate the respective controllers, but in the browser:

undefined local variable or method `acts\_as\_user’ for User:Class

Please, help!

If someone recommend another complete rbac plugin, i will appreciate  
your help.

Sincerely,

Mary

P.D. Today started Off Road Race “Baja 1000”

---

<div class="post-metadata">

**Author:** ![malooking](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/77aa72/32.png) [@malooking](https://www.ruby-forum.com/u/malooking)\
**Post date:** [November 14, 2007, 5:58pm UTC](https://www.ruby-forum.com/t/help-active-rbac/120091/2 "2007-11-14T17:58:21Z")

</div>

I use active\_rbac successfully and I really like it.

acts\_as\_user is a method that you place in the User model which adds  
stuff to the User model.

If it can’t be found perhaps you forgot to add these lines to your  
controller/application.rb file…

require\_dependency ‘user’  
require\_dependency ‘role’  
require\_dependency ‘static\_permission’

which is a documented “gotcha”
