First time poster - hope I’ve done sufficient homework to get more than
an
rtfm:
In my view, I have a
- list wherein each list element is identified
- <%= task.Description %> <% end %>
with
an id, thusly:
-
<% for task in @tasks %>
Next I have a sortable that is intended to make a callback after things
are
updated:
<%= sortable_element :todoHandle, :handle => ‘handle’ ,
:containment =>
[‘newHandle’,‘todoHandle’,‘doneHandle’,‘trashHandle’],
:dropOnEmpty => true,
:onUpdate => ??? %>
What I would like to understand is how to define an action which may be
called from onUpdate in order to resequence the tasks (in the database).
Most grateful for clues.
Thanks,
Marc