Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

mberman84's Profile

GitHub User: mberman84

Comments by

Avatar

I think i got it working but i'm trying to use a table rather than a ul/li and it doesn't seem to be passing the right thing to the sort action. no matter what, it passes the original order even after dragging+dropping to reorder the list. is there a way to get tables to work with this?

Avatar

Hey, thanks for the video. How would this work if the set of items is based on a has_many through model?

for example,

I have a list of pieces like this: @queue.pieces

pieces and queues are related via a has_many through piece_queues

would that work?