Analia Alvar


10 Experience
0 Lessons Completed
0 Questions Solved


Posted in Sortable Drag and Drop Discussion

The same was happening to me when using Rails.ajax(), I found this online and now it works:
update: function(e, ui) {
dataType: 'script',
url: $(this).data("url"),
type: "PATCH",
beforeSend: function() {
return true
data: $(this).sortable('serialize'),

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.