From: Nick Brown Date: 2010-03-01T03:46:36+09:00 Subject: Re: scope question Bob Hutchison wrote: > If you use @@vara it'll work, since vara will become a class variable > of Play::Application > > The trouble with that is that there's only one @@vara and it'll be > used for all requests by all users. I'm also thinking that you > probably don't really want that. If you don't then you'll have to keep > vara someplace else, and look for it in each request. OK, I'm with you so far. But here's what I want to do: there is one value (such as: number of users currently online) that is shown on every page. Every page view reads this number and displays it. This value is updated whenever someone logs in or out. What is the best way to handle that? -- Posted via http://www.ruby-forum.com/.