Created
November 1, 2012 17:37
-
-
Save dougiebuckets/3995259 to your computer and use it in GitHub Desktop.
SMS Reminders App
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RemindersController < ApplicationController | |
def reminder | |
if dateToRemind == Time.now | |
# Send SMS via TelAPI's REST API | |
Telapi::Message.create(number_to_send_to, | |
number_to_send_from, | |
'This is a reminder of your upcoming appointment tomorrow.' ) | |
else | |
puts "It's not time to remind them yet." | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment