diff options
author | gebele <gebele@in-silico.ch> | 2013-06-17 14:09:38 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2013-06-17 14:09:38 +0200 |
commit | 674d99e1ebcc9b72a3f96a434f08462f2c48c7ce (patch) | |
tree | 8b770e471f35365ecdf2dd22cf0c3407b42ba899 | |
parent | e3dd4baefeab82dd2568b4b7f3af4a5430678a61 (diff) |
prevent conversion of nil for neighbors
-rw-r--r-- | views/neighbors.haml | 4 |
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"} |