I want to have a certain controller’s action to do something at a certain time (for instace, send the user email at New Years day
I want it to be done regardless if the user enters the site or not.
Is there a gem for this for timers in rails?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can take a look to whenever gem, which writes and deploy cron jobs, so you are able to execute the task that you want at the time you want, for example:
This example was taken from the whenever gem documentation, hope this helps.