Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
post '/press' do
digits = params[:digits]
if digits != "1"
redirect '/'
end
content_type 'text/xml', :charset => 'utf-8'
builder do |xml|
xml.instruct!
xml.Response do
xml.Say("You pressed #{digits}")
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment