# \[ANN\] ActiveRBAC 0.3.1 Released

**URL:** <https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513>\
**Category:** Rails\
**Created:** [April 22, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513 "2006-04-22T13:36:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [April 22, 2006, 1:36pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513/1 "2006-04-22T13:36:47Z")

</div>

Hi

I am happy to announce the 0.3.1 release of ActiveRBAC Engine. The  
biggest improvement on the 0.3 release is that it runs with Rails 1.1  
now.

Get your personal copy now from

[https://activerbac.turingstudio.com/releases](https://activerbac.turingstudio.com/releases) 🙂

There is a manual PDF with a tutorial available at

[https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf](https://activerbac.turingstudio.com/releases/ActiveRbacManual.pdf)

which is also included in the full downloads.

## What is ActiveRBAC?

ActiveRBAC is a Ruby on Rails library that provides a full stack RBAC  
(Role Based Authorization) system with user, group, role and  
permission management. It provides models and controllers to edit  
those models (obviously it should also provide views which it does ;))

Useful URLS:

[https://activerbac.turingstudio.com](https://activerbac.turingstudio.com) - the project’s page  
[https://activerbac.turingstudio.com/api/](https://activerbac.turingstudio.com/api/) - API documentation  
[https://activerbac.turingstudio.com/releases/](https://activerbac.turingstudio.com/releases/) - download it here  
[https://activerbac.turingstudio.com/source/](https://activerbac.turingstudio.com/source/) - our SVN repository  
is here

If you have any questions or suggestions for us, contact us via our  
mailing list (or contact me directly if you prefer that):

removed\_email\_address@domain.invalid

You can sign up here:

[https://lists.cloudcore.com/mailman/listinfo/rbac-dev](https://lists.cloudcore.com/mailman/listinfo/rbac-dev)

## Changelog

- The RDOC documentation now only contains the API reference. The  
manual is available as a PDF at [https://activerbac.turingstudio.com/](https://activerbac.turingstudio.com/)  
releases/ActiveRbacManual.pdf (#121)
- Fixed the namespace problem of controllers & models (#119)
- Fixed a problem with the “railfix” code in Rails 1.1 (#114)
- ActiveRBAC now runs with Rails 1.1 (tested with 1.1.2) (#118)
- The files in app/model become stubs which simply import the  
ActiveRBAC mixins. This should make extending Models in your own code  
easier. (#112)
- Moving the constants User::DEFAULT\_PASSWORD\_HASH\_TYPES and  
User::DEFAULT\_STATES to private class methods with lowercased names.  
(CHECK FOR DEPENDENCY IN YOUR CODE)
- Renaming the “redirect\_to” parameter/session variable nam of  
LoginController to “return\_to” (#103)
- Adding “all\_static\_permissions” method to User. (#109)
- Adding Version identifier as described in http://api.rails-  
[engines.org/engines/classes/Engine.html](http://engines.org/engines/classes/Engine.html) (#104)
- Removing 3 lines from user\_controller.rb that expected  
InvalidStateTransition to be thrown (#113)
- adding support for redirect\_to feature to LoginController (#100)
- Adding migration for schema import
- fixing a documentation issue (#94)

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [April 22, 2006, 3:25pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513/2 "2006-04-22T15:25:10Z")

</div>

Hi, I’m attempting to go through the tutorial and I’m getting the  
following error when I try to import the SQL.

mysql -uuser\_name -ppassword activerbac\_demo\_db \< create.mysql.sql

BEGIN ERROR:

ERROR 1005 (HY000) at line 4: Can’t create table  
‘./activerbac\_demo\_db/articles.frm’ (errno: 150)

END ERROR:

BTW, I’m using the MySQL 5.0.20a-debug on a Mac OS X 10.4.6. Well, I  
must go and thanks in advance to a resolution.

-Conrad

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [April 22, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513/3 "2006-04-22T19:11:01Z")

</div>

Am 22.04.2006 um 15:22 schrieb Conrad T.:

> Hi, I’m attempting to go through the tutorial and I’m getting the  
> following error when I try to import the SQL.
> 
> mysql -uuser\_name -ppassword activerbac\_demo\_db \< create.mysql.sql
> 
> BEGIN ERROR:
> 
> ERROR 1005 (HY000) at line 4: Can’t create table  
> ‘./activerbac\_demo\_db/articles.frm’ (errno: 150)

This problem seems to be related to your MySQL installation. I don’t  
use MySQL so I can’t help you there 😕

\*m

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [May 3, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513/4 "2006-05-03T19:11:05Z")

</div>

Conrad,

Can you subscribe to the ActiveRBAC mailing list and resend this mail  
to there? Currently, I do not have the time to answer your mail but I  
am sure that someone on the list will be able to help you.

You can sign up for the list and find more information about it here:

[https://lists.cloudcore.com/mailman/listinfo/rbac-dev](https://lists.cloudcore.com/mailman/listinfo/rbac-dev)

Manuel

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [May 17, 2006, 4:09pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513/5 "2006-05-17T16:09:36Z")

</div>

On 4/22/06, Manuel H. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi
> 
> I am happy to announce the 0.3.1 release of ActiveRBAC Engine. The  
> biggest improvement on the 0.3 release is that it runs with Rails 1.1  
> now.

\> \* Fixed the namespace problem of controllers & models (#119)

Just an FYI, that I had a namespace issue with ActiveRBAC last week.

It was not a controller or model, but it was with:

- the “user” table in the DB
- the user helper
- and an instance variable of @user (I think that was mine, not  
ActiveRbac).

The conflict was with tracks which has its own authentication system  
and designed to be standalone, not added to an app like I did, so it  
is probably not surprising.

Regardless, maybe there is even more ActiveRBAC can do to avoid name  
collisions.

## Greg

Greg F.  
The Norcross Group  
Forensics for the 21st Century

---

<div class="post-metadata">

**Author:** ![mhutter](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ed655f/32.png) [@mhutter](https://www.ruby-forum.com/u/mhutter)\
**Post date:** [May 3, 2006, 7:11pm UTC](https://www.ruby-forum.com/t/ann-activerbac-0-3-1-released/58513/6 "2006-05-03T19:11:02Z")

</div>

Hi, after readying the ActiveRBAC, I will also need to be able to do  
the following:

1. create new user (i.e. registration/signup)
2. retrieve lost password
3. add/modify/delete other items

Now, I’m guessing that I can simply add additional items to my user  
model to do (1). Next, each user will also be able to edit one or  
more additional items. These items are different from the  
registration/profile data. Would it be a good practice to create a  
model for each one of these items and add links to admin page to these  
different views. For example,

AdminController \<-\> User  
AdminController \<-\> Listings  
AdminController \<-\> Out Of Town

which result in a view, admin.rhtml, that has links to these separate  
areas or I can simply add it to the admin.rhtml view:

User Section (has\_one :user)  
Listings Section (has\_one :user)  
Out of Town Section (has\_one :user)

Does this sound reasonable? Well, I must go and thanks in advance.

-Conrad
