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?
> 
> Thanks,
> 
> Cris

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

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