From de03020a09cdc6438d27916207cab1de554a70f2 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 27 Mar 2013 17:11:59 +0100 Subject: error handling compound names;smiles validation --- views/details.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'views/details.haml') diff --git a/views/details.haml b/views/details.haml index 448e8a8..38d97fe 100644 --- a/views/details.haml +++ b/views/details.haml @@ -7,12 +7,12 @@ %img{:src=>"#{@compound_uri.uri}/image", :alt=>@compound_uri.uri, :width=>"100px"} %p SMILES: - = @compound_uri.smiles if @compound_uri.smiles + = @smiles %p // TODO handle OpenTox::ResourceNotFoundError Names: - = @compound_uri.names if @compound_uri.names + = @names %p - = @compound_uri.inchi.gsub("InChI=", "InChI: ") if @compound_uri.inchi + = @inchi -- cgit v1.2.3