Create XML for Twilio to read
This commit is contained in:
parent
d8125c2202
commit
851f370068
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||||
|
|
4
app/views/alerts/show.xml.builder
Normal file
4
app/views/alerts/show.xml.builder
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
xml.instruct!
|
||||||
|
xml.Response do
|
||||||
|
xml.Say @alert.class_name + ' is now available.', :voice => 'woman'
|
||||||
|
end
|
Loading…
Reference in a new issue