mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
working on twilio integration
This commit is contained in:
parent
43140f8ec9
commit
5429034f8f
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue