working on twilio integration

pull/1/head
Jared Cosulich 9 years ago
parent 730d6cbbde
commit 43140f8ec9

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

Loading…
Cancel
Save