Engines with InstantRails


#1

I’ve recently started playing with InstantRails 1.0 and am now wanting
to experiment with the Login and active RBAC engines but having trouble
getting them to install.

I’ve checked the following but can’t find any info on how to get it to
work.

http://rails-engines.org/wiki/pages/Engines+plugin

I’ve also tried the following:

C:\InstantRails-1.0\rails_apps\my_project>ruby script/plugin install -x
http://svn.rails-engines.org/plugins/engines

but get the following error.

C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands
/plugin.rb:675:in method': wrong number of arguments (0 for 1) (ArgumentError) from C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands /plugin.rb:675:indetermine_install_method’
from
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands
/plugin.rb:690:in parse!' from C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands /plugin.rb:411:inparse!’
from
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands
/plugin.rb:427:in parse!' from C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/rails-1.0.0/lib/commands /plugin.rb:823 from C:/InstantRails-1.0/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require. rb:21:inrequire’
from
C:/InstantRails-1.0/ruby/lib/ruby/gems/1.8/gems/activesupport-1.2.5/lib/
active_support/dependencies.rb:214:in `require’
from script/plugin:3

I’m sure there must be something simple I’m doing wrong but I’ve tried
everything I can think of without success.

–Bill


#2

For Rails 1.1, I think this works best to install ActiveRBAC:

  1. install Engines via gems.
  2. download the Active_RBAC tarball from activerbac.turingstudio.com or
    via svn.
  3. Here’s how the directory tree should look in the vendors/plugins
    directory after installing Engines and Active_RBAC:

plugins
active_rbac
app
db
lib
test
engines
generators
lib
tasks
test

  1. create the Active_RBAC tables in your database.
  2. follow the rest of the instructions in the Active_RBAC wiki.

For Rails 1.1, add this line to $YourApp/controllers/application.rb:

model :user

…this will let active_rbac/app/controllers/login_controller.rb see
the User model.