Skip to content

Instantly share code, notes, and snippets.

@ayb
Created January 31, 2009 18:23
Show Gist options
  • Save ayb/55614 to your computer and use it in GitHub Desktop.
Save ayb/55614 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
require 'active_support'
get "/message" do
response = { :Say => "Hello, I am a big monkey" }
response.to_xml(:root => 'Response')
end
post "/message" do
response = { :Say => "Hello, I am a big monkey" }
response.to_xml(:root => 'Response')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment