module ImagesHelper

Public Instance Methods

pixel_format_column( record ) click to toggle source
# File app/helpers/images_helper.rb, line 3
def pixel_format_column( record )
  h( record.pixel_format.name )
end
thumbnail_column(record) click to toggle source

Makes the thumbnail an actual image link

# File app/helpers/images_helper.rb, line 10
def thumbnail_column(record)
  record.create_png
  image_tag( "dbimage-#{record.id}.png" )
end