title: how to add jquery data attributes in rails image_tag
body: <p>I need to add the following attribute in my rails <code>image_tag</code></p>
  
  <p><code>data-zoom-image</code></p>
  
  <p>I tried </p>
  
  <pre><code>&lt;%= image_tag @post.uploads.first.upload.url(:medium), data: { :zoom-image =&gt; 'test'} %&gt;
  </code></pre>
  
  <p>But throwing syntax error undefined local variable or method image.</p>
  
  <p>How can I add attribute rails</p>