How can I use the link_to helper to make a link without an href attribute? I want to make a link exclusively for a javascript action, I don\'t want
link_to
href
An example for rails 5 would be:
<%= content_tag("a", image_tag("/logo.png"), class: "navbar-brand") %>
This would render as:
This is similar to niels' answer but with a nested image_tag and a class.
image_tag
Source: Rails API