mhkna
mhkna

Reputation: 63

How can I get a new instance of a class to happen automatically at a certain time using Ruby on Rails?

I'm not quite sure how to phrase this, so if someone can point me to another post please do.

I'd like to have a 'round' class that starts at a certain time each day or after a certain countdown? Is this possible?

Upvotes: 0

Views: 38

Answers (1)

Marcin Kołodziej
Marcin Kołodziej

Reputation: 5313

For certain time each day, you can check whenever gem.

For starting after a certain countdown, you can read about Active Job.

Just starting points for you to figure out what you need.

Upvotes: 1

Related Questions