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. -- Posted via http://www.ruby-forum.com/.
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"] -- Posted via http://www.ruby-forum.com/.