From f57103720c82700f7e43d54707e9381668f0fb67 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 31 Mar 2011 13:47:34 +0200 Subject: ambit endpint selection started --- application.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 44adf89..9583411 100644 --- a/application.rb +++ b/application.rb @@ -175,6 +175,12 @@ get %r{/compound/(.*)} do |inchi| OpenTox::Compound.from_inchi(inchi).to_names.join(', ') end +get '/endpoints' do + #@endpoint = params[:endpoint] + @endpoints = OpenTox::Ontology::Echa.endpoints#(params[:endpoint]) + haml :endpoints +end + post '/models' do # create a new model unless params[:file] and params[:file][:tempfile] #params[:endpoint] and flash[:notice] = "Please upload a Excel or CSV file." -- cgit v1.2.3