Forum: Ruby on Rails New RBAC Plug-In for Rails

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.
Mitchell H. (Guest)
on 2006-04-24 09:50
Hi,

I just finished writing this plug-in. I've been using rails for awhile
but this is my first time extracting some code and writing it as a
plug-in and I'd love to hear to some feedback. Thanks.

http://mitchellhashimoto.com/rails/role-based-acce...

-Mitchell
David M. (Guest)
on 2006-04-24 10:38
(Received via mailing list)
Hi Mitchell,

What's the pros and cons of your RBAC plugin vs. the others that are
already out there?

Regards

Dave M.
Conrad T. (Guest)
on 2006-04-24 10:50
(Received via mailing list)
Hey Dave, I have the same question that you do in regards to the
plugin because I have just started to use ActiveRBAC plugin.  At this
time, I cannot use the supplied SQL file.

-Conrad
David M. (Guest)
on 2006-04-24 12:01
I have tried to install it, put the plugin into vendor/plugins directory
but it fails when running generators:

C:\ruby_projects\radrails\workspace\auth2>ruby script\generate
protected_migration
Couldn't find 'protected_migration' generator

I use it on WinXP, Rails 1.1.2 .

David


Mitchell H. wrote:
> Hi,
>
> I just finished writing this plug-in. I've been using rails for awhile
> but this is my first time extracting some code and writing it as a
> plug-in and I'd love to hear to some feedback. Thanks.
>
> http://mitchellhashimoto.com/rails/role-based-acce...
>
> -Mitchell
Mitchell H. (Guest)
on 2006-04-24 18:14
Hi David,

Sorry the README wasn't updated completely with the generators. I
renamed them to rbac_* later in development. I updated the readme now
but all generators instead of being prefixed with protect_* are now
prefixed with rbac_*

Mitch

David M. wrote:
> I have tried to install it, put the plugin into vendor/plugins directory
> but it fails when running generators:
>
> C:\ruby_projects\radrails\workspace\auth2>ruby script\generate
> protected_migration
> Couldn't find 'protected_migration' generator
>
> I use it on WinXP, Rails 1.1.2 .
>
> David

And to David M.:

My blog post explains the pros against acts_as_authenticated and
acl_system. I have not used ActiveRBAC very much but have glanced over
it and my plug-in, while keeping the flexibility of ActiveRBAC, allows
you to use protection straight out of the box. You can also write your
own authentication methods and customize the user model, but it is not
necessary. Those are the only solutions I am aware of...

Really it's my first plug-in and I'd just like feedback, I'm not trying
to sell a product. If you wish to use it, you can and I very much
welcome that! But if not, it's okay as this was a learning experience.

Mitch
David M. (Guest)
on 2006-04-25 05:18
(Received via mailing list)
Cool thanks.  I'll check it out when I kick off my next project - I'm
already tied to my own custom solution for the current one.

I'm really glad you (and others) are creating new options for
authorisation.  There's enough different use cases that having a wide
choice is a good thing.

Regards

Dave M.
This topic is locked and can not be replied to.