Answers for "rails image tag"

2

rails image tag

<%= image_tag 'icon.png', alt: 'icon' %>
# => <img src='app/assets/images/icon.png' alt='icon' />
Posted by: Guest on January-27-2021
0

rails image tag data attribute

<%= image_tag 'filename', title: "title", class: "class", data: { description: '..', title: '..' }  %>
Posted by: Guest on March-10-2021
0

rails image_tag link size

<%= link_to image_tag('btn.png'), '/books/index' %>
--> <a href="/books/index"><img alt="Btn" src="/assets/btn.png" /></a>
Posted by: Guest on June-20-2020

Browse Popular Code Answers by Language