# ActiveRbac Problem

**URL:** <https://www.ruby-forum.com/t/activerbac-problem/91780>\
**Category:** Engines\
**Created:** [April 12, 2007, 10:18am UTC](https://www.ruby-forum.com/t/activerbac-problem/91780 "2007-04-12T10:18:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![lumao66](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lumao66](https://www.ruby-forum.com/u/lumao66)\
**Post date:** [April 12, 2007, 10:18am UTC](https://www.ruby-forum.com/t/activerbac-problem/91780/1 "2007-04-12T10:18:42Z")

</div>

Does there anybody installs the ActiveRbac successfully on windows? and  
could you share your experience with me? Thanks.

---

<div class="post-metadata">

**Author:** ![lumao66](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lumao66](https://www.ruby-forum.com/u/lumao66)\
**Post date:** [April 12, 2007, 10:41am UTC](https://www.ruby-forum.com/t/activerbac-problem/91780/2 "2007-04-12T10:41:43Z")

</div>

Hi,

You may have better luck posting this question on the ActiveRBAC list  
itself: [https://lists.cloudcore.com/mailman/listinfo/rbac-dev](https://lists.cloudcore.com/mailman/listinfo/rbac-dev)

HTH,

James

---

<div class="post-metadata">

**Author:** ![lumao66](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lumao66](https://www.ruby-forum.com/u/lumao66)\
**Post date:** [April 12, 2007, 6:44pm UTC](https://www.ruby-forum.com/t/activerbac-problem/91780/3 "2007-04-12T18:44:18Z")

</div>

Captain F. wrote:

> Does there anybody installs the ActiveRbac successfully on windows? and  
> could you share your experience with me? Thanks.

Hi,

what version of ActiveRbac do you want to install?

Because ActiveRBAC is a rails or engines plugin, there a no windows  
specific issues I know so far.

There is a version for Rails 1.1.x, which requires engines 1.1, and as  
well a version for Rails 1.2, which requires engines 1.2. The last  
version is for Rails 1.2 and doesn’t need engines, but has less  
functionalities than the earlier versions.

I have all versions running on Windows without a problem. So I would be  
nice, that you specify your troubles a little more.

Thanks

---

<div class="post-metadata">

**Author:** ![lumao66](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lumao66](https://www.ruby-forum.com/u/lumao66)\
**Post date:** [April 13, 2007, 3:31pm UTC](https://www.ruby-forum.com/t/activerbac-problem/91780/4 "2007-04-13T15:31:34Z")

</div>

Hi, Kosmas:  
Finally i fix that problem. I made such a stupid mistake! The  
version ActiveRbac0.3.2 can only run under rails 1.1!  
Then i download the 0.4.1 version with engines 1.2 and put into  
my project, everything is ok now:) It’s not the problem of windows,  
actually , it’s my stupid mistake…  
Thanks anyway!  
cheers  
captain

---

<div class="post-metadata">

**Author:** ![lumao66](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/b5a626/32.png) [@lumao66](https://www.ruby-forum.com/u/lumao66)\
**Post date:** [April 13, 2007, 8:17am UTC](https://www.ruby-forum.com/t/activerbac-problem/91780/5 "2007-04-13T08:17:53Z")

</div>

Kosmas wrote:

> Captain F. wrote:
> 
> > Does there anybody installs the ActiveRbac successfully on windows? and  
> > could you share your experience with me? Thanks.
> 
> Hi,
> 
> what version of ActiveRbac do you want to install?
> 
> Because ActiveRBAC is a rails or engines plugin, there a no windows  
> specific issues I know so far.
> 
> There is a version for Rails 1.1.x, which requires engines 1.1, and as  
> well a version for Rails 1.2, which requires engines 1.2. The last  
> version is for Rails 1.2 and doesn’t need engines, but has less  
> functionalities than the earlier versions.
> 
> I have all versions running on Windows without a problem. So I would be  
> nice, that you specify your troubles a little more.
> 
> Thanks

Thanks Kosmas 🙂  
My version is ActiveRbac 0.3.2, and can this version run without an  
engine? If so, can you show me you configuration by example?  
I just follew the instruction of the ActiveRbacManual bellow:  
[https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf](https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf)  
My rails version is 1.2.3, ruby 1.8.6, engines 1.2  
I have tried for a few days but still failed…  
when i execute: rake --trace i have suche exception:  
D:/Rails-Project/test/config/environment.rb:84: undefined method  
`config' for Ac tiveRbacConfig:Module (NoMethodError) from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge  
m\_original\_require’  
from  
d:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re quire' from ./test/functional/../test_helper.rb:2 from d:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `ge  
m\_original\_require’  
from  
d:/ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:27:in `re quire' from ./test/functional/album_categories_controller_test.rb:1 from d:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader .rb:5:in `load’  
from  
d:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake\_test\_loader  
.rb:5  
from  
d:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake\_test\_loader  
.rb:5:in `each’  
from  
d:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake\_test\_loader  
.rb:5

here is my configuration in environment.rb(just follow the  
ActiveRbacManual)  
###########  
module ActiveRbacConfig  
config :controller\_layout, ‘articles’  
end

Engines.create\_logger  
Engines.start:active\_rbac  
###########  
And you said you had no problem in each version, so can you tell me the  
exactly detail? such as active\_rbac0.3.2 can run under which version of  
engines, rails?  
If engines is unneccessary, then how to configure the environment.rb to  
protect my controller?  
Anyway, thank you for your reply:)

Regards.  
captain
