Rails: using link_to to make a link without href

后端 未结 8 1804
情书的邮戳
情书的邮戳 2020-12-29 19:05

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

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-29 19:32

    I think you're better off using a button in situations where there is no href.

    
    

提交回复
热议问题