Hi,
I am doing a project on Ruby on Rails. This app has a table "reminder" with "e-mails", "Subjects", "Bodies" and "Scheduled times" columns (form with datetime_select is used to insert records).
When Time.now meets "Scheduled time" in database, app should send this particular record (Subject and Body) to the corresponding e-mail address. Can somebody help me with the method creation which suppose to compare Time.now with scheduled time in "reminder" table (there can be more than one record with that time in db) and passes required data to mailer, please? Would it be good to schedule with "whenever" to run that every minute? Or maybe you can share other methods which would trigger times comparison and e-mails sending. Time zones shouldn't be considered now, it will just be used UTC.
I am quite new in Rails and I can't find much relevant information on the web, so any information or suggestions are greatly appreciated.
Thanks!
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/b1ef7a97-353b-4efd-a3b2-87ae621e6d42%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment