Question : rails image tag
Answered by : lior
<%= image_tag 'icon.png', alt: 'icon' %>
# => <img src='app/assets/images/icon.png' alt='icon' />
Source : | Last Update : Wed, 03 Feb 21
Question : rails image tag data attribute
Answered by : lior
<%= image_tag 'filename', title: "title", class: "class", data: { description: '..', title: '..' } %>
Source : | Last Update : Wed, 17 Mar 21
Question : rails image_tag link size
Answered by : outstanding-otter-ec0nyy3r9yk9
<%= link_to image_tag('btn.png'), '/books/index' %>
--> <a href="/books/index"><img alt="Btn" src="/assets/btn.png" /></a>
Source : https://www.javadrive.jp/rails/template/index11.html | Last Update : Sat, 27 Jun 20