zorab47 / active_admin-sortable_tree

Show ActiveAdmin index as a nested tree with drag'n'drop
MIT License
162 stars 127 forks source link

saving resort? #19

Closed grimmwerks closed 10 years ago

grimmwerks commented 10 years ago

It's probably me since I'm fairly new to rails; but this allows drag and drop but doesn't save new positions upon drop, correct? Is there any tutorial or example to show me how to resave the new collection in the proper order?

nebirhos commented 10 years ago

Actually the collection order is saved through AJAX on every move, if it isn't working for you there should be a problem. Try looking at the browser console to see what's happening.

grimmwerks commented 10 years ago

Oh I see it calls a sort function but I don't have any method for that model - that's not in the readme; what is it I have to implement? I guess I'll try to output the params and go from there...