diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-08-25 17:34:25 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-08-25 17:34:25 +0000 |
commit | 744ae2bfb33a90b9de232cac4c3f7d205ff65fe9 (patch) | |
tree | ea3e7ec90d19645affd43b1eb9186e367c906e30 | |
parent | 4b90e58aa5873a01566f093ed1301ac4ccaf91f4 (diff) |
yaml export fixed
-rw-r--r-- | application.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb index f5b6d0c..c3520f4 100644 --- a/application.rb +++ b/application.rb @@ -174,7 +174,7 @@ get '/:id' do file = "#{@@datadir}/#{params[:id]}.yaml" unless File.exists? file # lazy yaml generation dataset = OpenTox::Dataset.from_json File.read(@json_file) - File.open(file,"w+") { |f| f.puts dataset.to_rdfxml } + File.open(file,"w+") { |f| f.puts dataset.to_yaml } end send_file file, :type => 'application/x-yaml' |