From fd1258afd54660cffe4c45472f9c856c68d30e61 Mon Sep 17 00:00:00 2001 From: mguetlein Date: Tue, 7 Sep 2010 10:23:16 +0200 Subject: fix examples --- application.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index b70d023..5e875c1 100644 --- a/application.rb +++ b/application.rb @@ -23,10 +23,11 @@ get '/prepare_examples/?' do Example.prepare_example_resources end -get '/test_examples/?' do - LOGGER.info "test examples" +post '/test_examples/?' do + examples = params[:examples] + LOGGER.info "test examples "+examples.to_s content_type "text/plain" - Example.test_examples + Example.test_examples(examples) end require "test/test_application.rb" -- cgit v1.2.3