working on twilio integration

pull/1/head
Jared Cosulich 9 years ago
parent 43140f8ec9
commit 5429034f8f

@ -3,7 +3,7 @@ class AttemptsController < ApplicationController
protect_from_forgery :except => [:twilio]
def twilio
attempt = Attempt.where(from: params['From']).first
attempt = Recipient.where(phone: params['From']).first.attempts.last
attempt.update_attributes(
answer_index: params[:Body].to_i,
twilio_details: params.to_h.to_yaml

Loading…
Cancel
Save