diff --git a/app/controllers/cancerpredicts_controller.rb b/app/controllers/cancerpredicts_controller.rb index 29b7db7..db4a467 100644 --- a/app/controllers/cancerpredicts_controller.rb +++ b/app/controllers/cancerpredicts_controller.rb @@ -18,7 +18,7 @@ class CancerpredictsController < ApplicationController next if image_id.to_s == "" @image = Headimages.find_by(:id=>image_id.to_s) @url = @image.temp_file.to_s - @head_images[@image.sort_number.to_i] = ('') + @head_images[@image.sort_number.to_i] = ('') end result['head_images'] = Hash[@head_images.sort].values.join('') @head_images = {} @@ -26,7 +26,7 @@ class CancerpredictsController < ApplicationController next if image_id.to_s == "" @image = Headimages.find_by(:id=>image_id.to_s) @url = @image.temp_file.to_s - @head_images[@image.sort_number.to_i] = ('') + @head_images[@image.sort_number.to_i] = ('') end result['title'] = ((@form_to_show.title_texts == "") ? "" : ''+@form_to_show.title_texts+'')+Hash[@head_images.sort].values.join('')