I need to add the following attribute in my rails image_tag
data-zoom-image
I tried
<%= image_tag @post.uploads.first.upload.url(:medium), data: { :zoom-image => 'test'} %>
But throwing syntax error undefined local variable or method image.
How can I add attribute rails