I am following the rails recipe book for authorization and it works
as written. I have created a controller that will be administrate
accounts and want to show each user with all their roles. I can't seem
to get the roles to match up. This is my logic
1. query RolesUsers (passing in the userid)
2 get the name of the role from Roles passing in the role_id received
from step one
my problem is that I see this when I puts the result of step one
#<RolesUsers role_id: 1, user_id: 1>
I am still new to ruby and a little confused as to what I am seeing.
it appears to be a class object, but from what I am use to seeing, it
is missing the @ in front of role_id and user_id.
I get an error if I do this, privs.role_id
any clue what is happening?