fixing twilio message

This commit is contained in:
Jared Cosulich 2017-03-10 15:55:33 -05:00
parent f4a6d4ce22
commit 8b19e1fac2

View file

@ -14,7 +14,7 @@ class Attempt < ApplicationRecord
message = client.messages.create(
from: twilio_number,
to: recipient.phone,
body: "#{question.text}%0a%0a#{question.option1}: Reply 1\n\r%0a%Oa#{question.option2}: Reply 2%0a#{question.option3}: Reply 3%0a#{question.option4}: Reply 4%0a#{question.option5}: Reply 5"
body: "#{question.text}\n\r#{question.option1}: Reply 1\n\r#{question.option2}: Reply 2\n\r#{question.option3}: Reply 3\n\r#{question.option4}: Reply 4\n\r#{question.option5}: Reply 5"
)
puts message.inspect