title: Adding custom data attributes rails image tag
body: <p>I need to add data-description and data-title for galleria in my rails application but I can't see how to do this with the image tag. So far I have this: </p>
  
  <pre><code>&lt;div id="galleria"&gt;
  &lt;% @entries.each do |entry| %&gt;
       &lt;%= image_tag entry.filename, :title =&gt; "title", :class =&gt; "class", :data-description =&gt; entry.caption, :data-title =&gt; entry.caption  %&gt;
   &lt;% end %&gt;
   &lt;/div&gt;
  </code></pre>
  
  <p>But this raises the undefined local variable or method `description' error, so how would I do this in rails 3?</p>