diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-09-07 10:23:16 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-09-07 10:23:16 +0200 |
commit | fd1258afd54660cffe4c45472f9c856c68d30e61 (patch) | |
tree | 0e091a62d5a86096bed0c16c4b3160fd455d9260 /application.rb | |
parent | 9fac92f0165d7e0a13b5680c92c5c26521beec65 (diff) |
fix examples
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 7 |
1 files changed, 4 insertions, 3 deletions
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" |