Hi there, I’ve got the following code to generate two sortable elements
but whenever someone drags and drops an item, i only want it to return a
serialised list of the items in categoryartworks, the unlinkedartworks
can be in any order and I don’t care. I can then delete those artworks
that were in category artworks but aren’t in the serialised list, plus
reorder the category artworks. Here’s the code:
The trouble is that rails generates this (repeats the parameters):
I want to override the default rails entry there and replace it with my
call to Sortable.serialise, right now It’s displaying both of them which
breaks the app.
I know this is probably just a basic syntax issue but how do I get it
done?
Hi there, I’ve got the following code to generate two sortable elements
but whenever someone drags and drops an item, i only want it to return a
serialised list of the items in categoryartworks, the unlinkedartworks
can be in any order and I don’t care. I can then delete those artworks
that were in category artworks but aren’t in the serialised list, plus
reorder the category artworks. Here’s the code:
The trouble is that rails generates this (repeats the parameters):
I want to override the default rails entry there and replace it with my
call to Sortable.serialise, right now It’s displaying both of them which
breaks the app.
I know this is probably just a basic syntax issue but how do I get it
done?
Cheers,
Brendon M.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.