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.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2022 GoRails, LLC. All rights reserved.