Cris Shupp wrote:
> I tried with statics 

(They're just called "class variables" in Ruby.)

> and that did not work.  It is as if rails 
> completely unloads the controller between invocations.

In development mode, it does.  And in production, there's no guarantee 
that you'll get the same server instance as last time, so you can't 
really rely on class variables in the controller.  You might be able to 
rig up something in a model...

But this smells funny.  What exactly are you trying to do here?  In most 
cases, if data is worth saving, it's worth putting in the DB.

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
-~----------~----~----~----~------~----~------~--~---

Reply via email to