Reputation: 69
How can i edit this code ?
<img data-seq src="images/model1.png" />
For this , but using script - "data-seq":
<%= image_tag 'model1.png' %>
Upvotes: 0
Views: 278
Reputation: 639
I'm not sure what you want, but if you want to add a custom data-seq
value, use this:
<%= image_tag 'model1.png', data: { seq: '' } %>
Upvotes: 1
Reputation: 23711
This will generate what you want
<%= image_tag 'model1.png', data: { seq: nil } %>
Upvotes: 0