I want to set a timer on ser开发者_开发百科ver side to run a method at a specific time. Has anybody done this using just rails and no AJAX? Thanks a lot. I'd appreciate any input :)
update: I've read about Delayed Job written by the amazing guys at Shopify. I think this might just do the trick
Your question is a little too vague to answer concisely. You may be looking for one of the following things:
- A client-side redirect on a timer with
http-equiv
headers. - A
cron
task that executesrails runner
on a regular schedule. - A timeout on an operation being performed, such as using
Timeout
.
精彩评论