Skip to content

Instantly share code, notes, and snippets.

@dougalcorn
Created February 25, 2010 18:57
Show Gist options
  • Save dougalcorn/314905 to your computer and use it in GitHub Desktop.
Save dougalcorn/314905 to your computer and use it in GitHub Desktop.
post '/events' do
data = request.body.read
File.open(File.join(EVENTS_PATH, "#{Time.now.strftime('%Y%m%dT%H%M%S')}.xml"), "w") do |f|
f.write data
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment