image tag rails 6 code example
Example: rails image tag
<%= image_tag 'icon.png', alt: 'icon' %>
# => <img src='app/assets/images/icon.png' alt='icon' />
<%= image_tag 'icon.png', alt: 'icon' %>
# => <img src='app/assets/images/icon.png' alt='icon' />