On 19 April 2013 20:28, karan verma <karan.verm...@gmail.com> wrote: > .. > Yes I need it to happen immediately the admin decides that it should > happen. To implement the polling mechanism how can I enable the javascript > to talk to the rails server?
That is a javascript issue rather than a rails one. Have a look at the javascript setTimeout function. However if you want to write sophisticated web apps you really need a good knowledge of javascript. I suggest working through some tutorials. Probably jQuery. Colin > > >> >> >> > >> > On Friday, 19 April 2013 00:45:18 UTC-7, Colin Law wrote: >> >> >> >> On 19 April 2013 07:00, karan verma <karan....@gmail.com> wrote: >> >> > Hi >> >> > >> >> > I am building a Rails application which aims at facilitating two >> >> > users >> >> > to >> >> > collaborate on a web page based on their user id. The user matching >> >> > process >> >> > is a controlled one since the app is for research purposes. To >> >> > support >> >> > the >> >> > same I am also building an admin interface which will allow the admin >> >> > to >> >> > match two users so that both of them are redirected to a certain >> >> > webpage. >> >> > >> >> > How can I force the user browsers to redirect to a common page, that >> >> > I >> >> > selected? >> >> >> >> You could save the redirect requirement in a table in the database, >> >> with an appropriate relationship with the user, then use a before >> >> filter in the controller to check whether a redirect is required and >> >> do it. >> >> >> >> Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.