Hi, I am making a call to remote_function, which updates a variable that I need to use in my current view. Call is happening, but the variable is not getting updated? PS: And to avoid missing template error , in my remote function I am doing this: render :nothing => true, :layout => false. Please Suggest. Regards, Sandeep G -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 22 Nov 2007, at 22:46, Sandeep Gudibanda wrote:> > Hi, > > I am making a call to remote_function, which updates a variable that I > need to use in my current view. Call is happening, but the variable is > not getting updated? > > PS: And to avoid missing template error , in my remote function I am > doing this: render :nothing => true, :layout => false.What are you actually doing? Fred --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung wrote:> On 22 Nov 2007, at 22:46, Sandeep Gudibanda wrote: > >> >> Hi, >> >> I am making a call to remote_function, which updates a variable that I >> need to use in my current view. Call is happening, but the variable is >> not getting updated? >> >> PS: And to avoid missing template error , in my remote function I am >> doing this: render :nothing => true, :layout => false. > > What are you actually doing? > > FredThanks Fred. I used rjs to replace html of div that element i had to update. That worked. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---