summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2013-06-17 14:09:38 +0200
committergebele <gebele@in-silico.ch>2013-06-17 14:09:38 +0200
commit674d99e1ebcc9b72a3f96a434f08462f2c48c7ce (patch)
tree8b770e471f35365ecdf2dd22cf0c3407b42ba899
parente3dd4baefeab82dd2568b4b7f3af4a5430678a61 (diff)
prevent conversion of nil for neighbors
-rw-r--r--views/neighbors.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/neighbors.haml b/views/neighbors.haml
index 43fb397..01ffe29 100644
--- a/views/neighbors.haml
+++ b/views/neighbors.haml
@@ -84,9 +84,9 @@
Details
-#%tbody
- count = 0
- / prevent conversion of nil
- - c = p.data_entries[count][2] != nil ? p.data_entries[count][2] : ''
- p.compounds.each do |neighbor_compound|
+ / prevent conversion of nil
+ - c = p.data_entries[count][2] != nil ? p.data_entries[count][2] : ''
%tr
%td.compound
%img{:src=>"#{neighbor_compound.uri}/image", :alt=>"", :width=>"100px"}