Module: SledImagesHelper

Defined in:
app/helpers/sled_images_helper.rb

Instance Method Summary collapse

Instance Method Details



8
9
10
11
# File 'app/helpers/sled_images_helper.rb', line 8

def sled_image_link(sled_image)
  return nil if sled_image.nil?
  link_to(sled_image_tag(sled_image), grid_digitize_task_path(sled_image_id: sled_image.id))
end

#sled_image_tag(sled_image) ⇒ Object



3
4
5
6
# File 'app/helpers/sled_images_helper.rb', line 3

def sled_image_tag(sled_image)
  return nil if sled_image.nil?
  (:span, "sled image: #{sled_image.id}")
end