In a controller, I’m trying to do
def do_some_periodic_thing
render :update
page << ‘var foo = new Ajax.PeriodicalUpdater(“someDiv”,
“/some/path”, {asynchronous:true, frequency:1, evalScripts:true} );’
end
end
In the view, I have
<%= link_to_remote “Test Periodical”, :url => { :action =>
“do_some_periodic_thing”}%>
But according to the log, /some/path never gets called.
Evidently, I’m doing something dumb or ignorant.
Can somebody give me an example of how this should be done? Or some
pointers to web sites I should have found?
Thanks in advance…
–Al Evans
