hmmm, ok, but even if I try this session[:me] = @me.account_id
and try to print it in the other method print "\n" + session[:me].to_s + "aaa" it only prints the "aaa" If I try to print it in the same method, after I have added it to the session, then it outputs the account_id... grr How is it possible that the session is not preserved when I call its variables in another method. By the way, even when I stored a whole object in the session, I could print its contents in the same method where I stored it. any ideas :( Borja Martín wrote: > storing whole objects in session isn't usually a good recommendation... > the best solution would probably be to pass just the object's id and > then retrieve it from the database/wherever in your requested action > another approach could be to serialize the object and deserialize it > at the server. however, if you just need to pass a hash or something > like that, you could use the json notation to pass the data > > Regards > > > On Thu, Feb 26, 2009 at 10:17 AM, CFC <[email protected]> wrote: >>> Here is some of my javascript for the Ajax: >>> I am not sure if there is a way to pass an object in the url string >>> Posted via http://www.ruby-forum.com/. >> http://zusocfc.blogspot.com >> >> Only two surfaces of a box: >> http://blog.pixnet.net/zusocfc >> >> > >> > > > > -- > /** > * dagi3d v4 | http://dagi3d.net > */ -- 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 -~----------~----~----~----~------~----~------~--~---

