Rails, how do you submit a form with a text link?

后端 未结 4 703
一整个雨季
一整个雨季 2021-02-09 14:49

I am trying to get this form to submit correctly. Here\'s what I have so far:

<% form_for(:user, :url => update_user_setting_path, :remote => true, :htm         


        
4条回答
  •  温柔的废话
    2021-02-09 15:31

    Thanks for the answers... I ended up using this and it works great:

                  
  • <%= link_to raw("SAVE"), "index_users", :onclick=>"document.forms['form1'].submit();"%>
提交回复
热议问题