diff options
Diffstat (limited to 'views/select.haml')
-rw-r--r-- | views/select.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/views/select.haml b/views/select.haml index d6e3d20..1dd8cf4 100644 --- a/views/select.haml +++ b/views/select.haml @@ -2,7 +2,7 @@ More than one compound found for = "\"#{params[:name]}\"." Please select a structure: -- @compounds.each do |compound| - %a{:href => "/cid/#{compound.cid}"} - %img{:src => compound.image_uri } +- @cids.each do |cid| + %a{:href => "/cid/#{cid}"} + %img{:src => image_uri(cid)} |