Reputation: 1186
I am sending a request using :remote => true, but each time I click on the request it sends it twice?
I have tried removing //require jquery from application.js, it solves this problem but then jQuery requests are not sent.
Upvotes: 0
Views: 525
Reputation: 11
In my case, I had required both jquery and jquery-ujs. Deleting the latter, resolved the problem!
Upvotes: 1
Reputation: 179
Check if there any JavaScript click event with ajax binded to the element.
Upvotes: 0
Reputation: 3046
It could be that jquery-ujs included twice and there are two events that fired on click. Check all included js files for duplicates.
Upvotes: 0