summaryrefslogtreecommitdiff
path: root/application.rb
diff options
context:
space:
mode:
authoropentox <opentox@ot-dev.in-silico.ch>2011-06-15 18:50:47 +0200
committeropentox <opentox@ot-dev.in-silico.ch>2011-06-15 18:50:47 +0200
commit13313d9fa8f5e4b29bbbc0ddeb0e455765b0774d (patch)
treedd163b819933c2e516e6f6ac841b1981931c957d /application.rb
parent48c30444036f5f761a13fdd56036790dc7d61a3f (diff)
cactvs name lookup disabled
Diffstat (limited to 'application.rb')
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index 60d50cd..8d96dbe 100644
--- a/application.rb
+++ b/application.rb
@@ -338,7 +338,7 @@ post '/predict/?' do # post chemical name to model
redirect url_for('/predict')
end
begin
- @compound = OpenTox::Compound.from_name(params[:identifier])
+ @compound = OpenTox::Compound.from_smiles(params[:identifier])
rescue
flash[:notice] = "Could not find a structure for '#{@identifier}'. Please try again."
redirect url_for('/predict')