Created
January 18, 2012 21:14
-
-
Save manlycode/1635699 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 ReceiveTextController < ActionController | |
def index | |
# let's pretend that we've mapped this action to | |
# http://localhost:3000/sms in the routes.rb file | |
message_body = params["Body"] | |
from_number = params["From"] | |
SMSLogger.log_text_message from_number, message_body | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment