Rails image_tag width attribute to use a percentage / auto value?
size is spitted across the 'x' and on both side it finds for numbers. checkout the code You can use 'style' option for image_tag.
UPDATE:
You can use the image tag with style as followed
= image_tag 'image_url', style: 'height:100%;width:auto;'