开发者

Rails 3 Timer to run a method (Delayed Job)

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 executes rails runner on a regular schedule.
  • A timeout on an operation being performed, such as using Timeout.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜