How do I append data to a jquery-ujs post request in Rails?

后端 未结 3 1129
难免孤独
难免孤独 2021-02-02 02:37

I have an Ajax form with a data-remote=\"true\" attribute which I\'m submitting to a controller in rails.

What I\'d like to do is to use the jquery-ujs even

3条回答
  •  一整个雨季
    2021-02-02 03:18

    To change data attribute (at least now, using Jquery 1.7.2) inside the beforeSend method (the Jquery native method), you can just alter the this.data variable.

提交回复
热议问题