Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 812 Bytes

File metadata and controls

27 lines (20 loc) · 812 Bytes

Images Integration

Shrine

Image Row

The Shrine implementation receives an optional image_options which is then used as the options for the image_tag method.

show do
  attributes_table do
    image_row :photo, image_options: { width: 400 }
  end
end

Image Column

To use the Shrine derivatives you can use the style option with the name of the derivative like the example below. In this case you would need to have a derivative created with the 'jpg_small' name.

index do
  image_column :photo, style: :jpg_small
end