i am currently working on a rails application. brief regarding the application is as follow:
i am allowing user to edit data(to database) in html table(using javascript and ajax calls)
what i want is, when a user updates a cell(and saves to db), other users should get this updated information without a page refresh.
i can use a javascript timer function that will load new data at every few seconds, but i want this to be event driven(say when a user updates any data) since calling server controller at some seconds is not efficient.
please suggest some better way of doing this. also some guidance on how to achieve this in rails.
You can do by websocket. By example you can use the webservice pusher
In open source you can have :