Sijo k g wrote: > Hi Pieter > >> Is it possible to create variables in the rails environment that persist >> globally - not as sessions - that would be too much porting of >> information forwards and back. > > This is possible by global variables in ruby (variables starts with > @@ )
No, those are class variables. Global variable names start with different characters in Ruby. If you really want to know what, you can look it up, but I'm not going to make it easier to implement a bad idea. And global variables *are* a bad idea. In Rails, they're not even reliable for maintaining global state, because they're only global to each server instance. Just forget they exist. > >>In any case the data needs to be visible >> 'between' sessions as well. > > But this needs the data to be stored in D B it self. Is it? Sure sounds like it. > > > Sijo Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

