Ruby on Rails : how to implement Cancel button in form_tag

后端 未结 4 1279
情书的邮戳
情书的邮戳 2021-02-07 15:28

I have a basic form using the form_tag helper working fine, but I want to add a cancel button, what is the syntax for doing this? I want the cancel button to appear as a button

4条回答
  •  死守一世寂寞
    2021-02-07 15:55

    Instead of a submit tag, I would suggest a

提交回复
热议问题