Array problem


#1

I’m having a difficult time looking @user[:domains] from
auth_generator. Here is the output from debug:

debug(@user[:domains])

will print out:


TESTERS: “1”
ADMIN: “1”

But if I use @user[:domains][:TESTERS] it returns nil. How would I go
about accessing the level of each of the domains? Thanks.


#2

Justin Hernandez wrote:

I’m having a difficult time looking @user[:domains] from
auth_generator. Here is the output from debug:

debug(@user[:domains])

will print out:


TESTERS: “1”
ADMIN: “1”

But if I use @user[:domains][:TESTERS] it returns nil. How would I go
about accessing the level of each of the domains? Thanks.

Try using @user[:domains][“TESTERS”]


#3

Tried @user[:domains][“TESTERS”]. But still nothing.