image_tag rails code example
Example 1: rails image tag
<%= image_tag 'icon.png', alt: 'icon' %>
# => <img src='app/assets/images/icon.png' alt='icon' />
Example 2: rails image tag data attribute
<%= image_tag 'filename', title: "title", class: "class", data: { description: '..', title: '..' } %>