Images Integration
March 14, 2023 ยท View on GitHub
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
