From 0b64779ad95c7db741ef68a36a58b1fa3f7f5cac Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 16 May 2011 14:50:55 +0000 Subject: typo in error message Model not found fixed --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 866a267..ba3c1a1 100644 --- a/application.rb +++ b/application.rb @@ -22,7 +22,7 @@ before do @uri = uri @id @yaml_file = "public/#{@id}.yaml" - halt 404, "Dataset #{@id} not found." unless File.exists? @yaml_file + halt 404, "Model #{@id} not found." unless File.exists? @yaml_file end # make sure subjectid is not included in params, subjectid is set as member variable -- cgit v1.2.3 From fafc707b60a1d093a8c26313cd7fc28ae6a54696 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Fri, 20 May 2011 10:57:47 +0000 Subject: model/:id/{predicted|dpendent} exposed through REST --- application.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 866a267..72e4254 100644 --- a/application.rb +++ b/application.rb @@ -16,6 +16,7 @@ end before do @accept = request.env['HTTP_ACCEPT'] @accept = 'application/rdf+xml' if @accept == '*/*' or @accept == '' or @accept.nil? + response['Content-Type'] = @accept @id = request.path_info.match(/^\/\d+/) unless @id.nil? @id = @id.to_s.sub(/\//,'').to_i -- cgit v1.2.3