Joe Peck wrote:
> Good morning everybody, how are you?
> 
> Okay, this should be easy.  I am generating a large array in one action,
> and I want to pass this array to another action when the user pushes a
> button.
> 
> Anyone know a good way to pass a large array from one action to another?

I would recommend serializing it into a temp file on the server and 
reading it back out in the other action. You should be able to serialize 
it with "to_json", and just write it to a file.  Then read it back into 
an array in the other action.  Name the temp file relative to the user 
so you don't have to worry about a name collision, and then pass the 
path to the temp file in the session.

HTH,
jp
-- 
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