aah ok, that was one of the things I tried first. however, I'm still not sure how I should do that syntactically.
As I mentioned in my first post, I tried to do something like: (in the controller): @myid = "15" Then in the javascript function, which issues the Ajax call I construct the following url for the Ajax call: url = "<%= url_for(:action => 'search', :myid => #...@myid}, canvas => false..... Then I get a syntax error. I am not sure how I have to pass the variable in the Ajax url?! And still, I am wondering why after putting a simple string into the session, I cannot retrieve it from another method (different than the one where I added the string) Thank you! Borja Martín wrote: > what I wanted to say is that you should pass the object's id through > the ajax request so there is no need to store it in the session > > regards > > On Thu, Feb 26, 2009 at 11:55 AM, Pesho Petrov > <[email protected]> wrote: >> >> >>> >>>> > >> Posted via http://www.ruby-forum.com/. >> >> > >> > > > > -- > /** > * 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 -~----------~----~----~----~------~----~------~--~---

