I am new to both Twilio and Ruby and am trying to figure out how to “redirect” or send a request to another url. I don’t need to Gather data at this step but simply evaluate a parameter passed and send it in one direction or the other. Any help?
post '/ors_verified/ors/:ors_number' do |ors_number|
number_correct = params['Digits']
if number_correct == '1'
redirect "/how_many_irt/ors/#{ors_number}"
else
redirect '/how_many_ors'
end
end
So the issue was that I needed to wrap it into a twillio response.