Rails 3 equivalent for periodically_call_remote

I was searching for the right way to do it with Rails 3 but now I am confident that there is no equivalent to periodically_call_remote in Rails 3.
To get the exact same functionality done with jQuery, I used:

$(document).ready(
  function(){
    setInterval(function(){
      $('#mydiv').load('/controller/action');
    }, 3000);
  });

Leave a Comment