I have a Person
model whose location is updated every few seconds from a mobile app and saved to the database. Now I want to access the updated information in the view without re rendering the whole page.
How do I do that?
I want to do something like this
setInterval(function(){
// display updated data
}, 5000);
p.s.: I am using JavaScript only for the time interval, this is a Rails question.
Reloading the page after every few seconds works but totally kills what I'm trying to do.