Skip to content

Instantly share code, notes, and snippets.

@inem
Created December 18, 2020 09:22
Show Gist options
  • Save inem/8a33ca22e28fd43126d30b892027bcbe to your computer and use it in GitHub Desktop.
Save inem/8a33ca22e28fd43126d30b892027bcbe to your computer and use it in GitHub Desktop.
<div style='display: flex; width: 120px; height: 70px;'>
<%= image_tag field.to_s, style: 'width: 100%; height: 100%; object-fit: contain;' %>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment