I've used the converted ActiveRbac mentioned - its working great for me. The conversion itself is not hard or that complicated.
Cheers, Brett On Mar 10, 2007, at 1:19 AM, Greg Freemyer wrote: > Did you try the activerbac code from rubyforge? Supposedly it has > been updated for 1.2 > > http://rubyforge.org/frs/?group_id=2972 > > Looks like only 10 downloads so far, so it may not be very tested yet > and I think the upgrade was done by normal user as opposed to the > original author. > > If you read https://lists.cloudcore.com/pipermail/rbac-dev/ you will > see that the original author has plans convert activerbac to a > non-engines based solution. > > FYI: It is on my todo list to upgrade, but I have not tried it yet. I > may wait to see if the original author does before I try to decide > which way to go. > > Greg > > On 3/9/07, martin <[EMAIL PROTECTED]> wrote: >> Oh,I see,thanks James. >> >> >> On 3/9/07, James Adam <[EMAIL PROTECTED]> wrote: >>> If ActiveRBAC still comes as an "old-style engine", (i.e. with >>> init_engine.rb rather than init.rb) then it's likely not compatible >>> with the 1.2 (latest) engines plugin. This would certainly >>> explain why >>> the code in init_engine.rb is not evaluated. >>> >>> On 3/9/07, martin <[EMAIL PROTECTED]> wrote: >>>> I've installed the lasted engines and active_rbac from svn, >>>> and >> configurated >>>> it as the following. >>>> >>>> 1:edit the routes.rb,and add >>>>> map.connect >>>> '/active_rbac/registration/confirm/:user/:token', >>>>> :controller => 'active_rbac/registration', >>>>> :action => 'confirm' >>>>> >>>> >>>> 2:add config.plugins params in environment/development.rb >>>>> config.plugins = ["engines", "*"] >>>> >>>> Then i started the server,but it couldn't find the active_rbac's >>>> lib。The >>>> codes in vender/plugins/active_rbac/init_engine.rb >> dosen't >>>> take effect. >>>> the codes is this: >>>>> require 'active_rbac/application_controller_mixin' >>>>> # require the model mixins >>>>> require 'active_rbac/exceptions' >>>>> require 'active_rbac/group_mixin' >>>>> ..... >>>>> >>>> >>>> So i have to add the following ugly code in Applicaiton.rb >>>>> RABC_DIR = File.join(RAILS_ROOT, '/vendor/plugins/active_rbac/') >>>>> >>>>> >> require_dependency"#{RABC_DIR}app/helpers/rbac_helper" >>>>> >>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/ >> application_controller_mixin" >>>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/exceptions" >>>>> >>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/group_mixin" >>>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/role_mixin" >>>>> >>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/ >> registration_mailer_mixin" >>>>> >>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/ >> static_permission_mixin" >>>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/user_mixin" >>>>> >>>> >> require_dependency"#{RABC_DIR}lib/active_rbac/ >> user_registration_mixin" >>>>> >>>>> class ApplicationController < ActionController::Base >>>>> helper RbacHelper >>>>> # The application controller will give us the "current_user" >>>>> method. >>>>> include >> ActiveRbacMixins::ApplicationControllerMixin >>>> >>>> why engines not auto import the active_rbac's lib? >>>> >>>> >>>> _______________________________________________ >>>> engine-users mailing list >>>> [email protected] >>>> >> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails- >> engines.org >>>> >>>> >>> >>> >>> -- >>> * J * >>> ~ >>> _______________________________________________ >>> engine-users mailing list >>> [email protected] >>> >> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails- >> engines.org >>> >> >> >> _______________________________________________ >> engine-users mailing list >> [email protected] >> http://lists.rails-engines.org/listinfo.cgi/engine-users-rails- >> engines.org >> >> > > > -- > Greg Freemyer > The Norcross Group > Forensics for the 21st Century > _______________________________________________ > engine-users mailing list > [email protected] > http://lists.rails-engines.org/listinfo.cgi/engine-users-rails- > engines.org _______________________________________________ engine-users mailing list [email protected] http://lists.rails-engines.org/listinfo.cgi/engine-users-rails-engines.org
