Maintaining non persisted data

Cris Shupp wrote:

Hi all,

I have the following file below which is a controller inteneded to
maintain non persisted data. It has two routes defined by 'gather' and
'show'. Gather displays a form and show, obviously, shows the non
persisted data. My problem is that initialize is called every time
gather and show are called causing me to lose the data contained in @td.
How do I fix this?



To summarize and extend what I said in previous posts: I don't really
think you need to store this data at all. It doesn't look like it lives
any longer than one request cycle. But if you do, it may be worth
storing in the session...