show do
attributes_table do
image_row :photo
end
end
index do
image_column :photo, style: :thumb
end
You can pass
style
attribute matching paperclip's style definition
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
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