Skip to content

Instantly share code, notes, and snippets.

@manlycode
Created January 18, 2012 21:14
Show Gist options
  • Save manlycode/1635699 to your computer and use it in GitHub Desktop.
Save manlycode/1635699 to your computer and use it in GitHub Desktop.
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