Kosmas wrote:
> Captain Feng 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
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

-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
engine-users mailing list
[EMAIL PROTECTED]
http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org

Reply via email to