Forum: Ruby on Rails Engines with InstantRails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
William (Bill) Froelich (Guest)
on 2006-03-13 05:19
(Received via mailing list)
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:in `determine_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:in `parse!'
        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:in `require'
        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
Corey L. (Guest)
on 2006-04-11 02:14
(Received via mailing list)
For Rails 1.1, I think this works best to install ActiveRBAC:

0) install Engines via gems.
1) download the Active_RBAC tarball from activerbac.turingstudio.com or
via svn.
2) 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

3) create the Active_RBAC tables in your database.
4) 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.
This topic is locked and can not be replied to.