How do I pass multiple classes to the image_tag
helper in a Rails 5 app? I want to convert this HTML <img>
tag:
<img class="etalage_thumb_image" src="images/m1.jpg" class="img-responsive" />
into
<%= image_tag @post.picture.url if @post.picture? %>
with the Rails image_tag
helper. How do I accomplish this?