I am using Periodically_call_remote in the following way
<div id="refresh">
<%= periodically_call_remote(
:update => "refresh",
:frequency => 3,
:url => { :action => :activate }) %>
</div>
and the action i am calling is shown below. The activate action checks
for some value in a remote database and once the value says Active
then i want the user to be redirected to another page. But what is
happening is that the new page is getting loaded inside the Div
"refresh" tag. So its a page in page.
def activate
---perform something---
if ( Check = "active")
redirect to different page
end
end
Any idea how i can do rectify this. Any other suggestions are welcome
too.
Ashwin
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.