I have the following view refinery/portfolio/items/_item.html.erb
from RefineryCMS and for some reason my data-attributes are not being rendered into the DOM.
From my understanding it seems that RefineryCMS is potentially removing them?
Rails 4.2.6 and latest master branch of RefineryCMS
Here is my ERB template:
<li class="col-md-3 col-xs-6 thumb">
<a class="thumbnail" data-toggle="tab" data-target="#tab_<%= dom_id(item) %>">
<%= image_tag(item.image.url, {:title => item.title}) %>
</a>
</li>
Also tried:
<li class="col-md-3 col-xs-6 thumb">
<%= link_to "", class: "thumbnail", data: { toggle: "tab", target: "#tab_#{dom_id(item)}" } do %>
<%= image_tag(item.image.url, {:title => item.title}) %>
<% end %>
</li>
It then renders HTML as:
<a class="thumbnail">
<img title="title" src="/img.png" alt="alt_title">
</a>