On 14 May 2010 13:42, arga aridarma <[email protected]> wrote: > Is there any Rails way how to perform this user-based ajax call? > > The periodically_call_remote is ok, but it is a periodically calls.
link_to_remote is what you want. Have a look for tutorials on basic ajax in rails. Colin > > regards, > > Arga > > > ----- Original Message ---- > From: Colin Law <[email protected]> > > On 13 May 2010 19:24, arga aridarma <[email protected]> wrote: >> Hi all, >> >> I'm just wondering what is the best practice in rendering a page. >> My case is i have 3 separated forms inside 1 page, each with different >> functionality. >> Right now, i divided them into 3 partials (let's say partials a,b, and c) , >> and render them by using render :partials at the index page. >> >> Partial c is constantly refreshed by using periodically_call_remote. >> Suppose I want to "update" the data in partial a due to user action, is it >> possible to do that without re-rendering the entire page? > > Yes if you make the user action an ajax call. > > Colin > > > > -- > 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. > > -- 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.

