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 alternative is
= link_to("My hyperlink", "#")
This will give you a link that when clicked, does not reload the page like passing in nil. At the same time, it will set the mouse to pointer on mouseover, which you will not get with the content_tag approach.