Make a global array for each user in ruby
问题 I have an issue and I'm trying to figure out the best/simplest way to resolve this... I have multiple users on my app. the app allows users to add books to a read-queue list (like a list of books a user can keep tabs on). Originally, I set the read-queue list as a global array. However this meant that multiple users were adding books to a single global array. If user1 added 3 books, user2 would also see those 3 books. Or if user1 cleared the read-queue list, user2's books were cleared too.