Forum: Ruby on Rails RE: ACLSystem and session variables

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Buntin, Seth - KATE (Guest)
on 2006-03-16 23:18
(Received via mailing list)
Yeah I figured that out....i need sleep.


From: Emin H. [mailto:removed_email_address@domain.invalid]
Sent: Thursday, March 16, 2006 3:10 PM
To: removed_email_address@domain.invalid
Subject: Re: [Rails] ACLSystem and session variables

I don't know that system, but from the code it looks like @user.roles is
a collection so you cannot simply print its value

On 3/16/06, Buntin, Seth - KATE <removed_email_address@domain.invalid> wrote:

I am using the ACL System that is described on the Rails wiki and I have
a quick question.  I want to set the "role" as a session variable so
that I can display certain navigation schemes and I was doing it like

@session[:user][:role] = @user.roles

When I print out this variable I get:


How can I turn this into a readable value?  I tried .to_i because I
think it is an integer but that method isn't valid.


This topic is locked and can not be replied to.