1
0
Fork 0

Create XML for Twilio to read

This commit is contained in:
Andrew Tomaka 2013-04-03 19:35:03 -04:00
parent d8125c2202
commit 851f370068
2 changed files with 5 additions and 0 deletions

View file

@ -17,6 +17,7 @@ class AlertsController < ApplicationController
respond_to do |format| respond_to do |format|
format.html # show.html.erb format.html # show.html.erb
format.xml # show.xml.builder
format.json { render json: @alert } format.json { render json: @alert }
end end
end end

View file

@ -0,0 +1,4 @@
xml.instruct!
xml.Response do
xml.Say @alert.class_name + ' is now available.', :voice => 'woman'
end