On 16 Dec 2008, at 14:49, The Neurochild wrote:
> > Hello, guys. > > I'm using session variables (session[:example]) in my app to do all > the user session tasks. Additionally I'm also using them to save the > data from a 3-page sata submission, so when when you click "Submit" on > the last page, you can send the data from the all the pages. However, > I have a problem: since I'm using session variables, when going to the > first page having submitted the data to my database, that remains in > the forms, as I let it keep them when submitting additional data that > requires a submit and then back to the form (i.e.: A country's state, > that triggers an action that allows you to select a city from that > state). > > I tried to use global variables from Ruby, but when another user is > connected, if the submit data is not completed, he overwrites tthe > data from the first user's previous pages and when the submission is > done, the last form submits the data from both. > > Resuming, what i'm looking for is a kind of variable that is global, > but also individual at the same time for each user so it doesn't > overwrites each other data. is there any kind of variable that let me > do those things? > Nope, either the session or the database. Fred > Greetings... > > The Neurochild > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

