First time poster - hope I''ve done sufficient homework to get more than
an
rtfm:
In my view, I have a <ul> list wherein each list element is identified
with
an id, thusly:
<ul id="todoHandle">
<% for task in @tasks %>
<li id="task_<%=task.id%>">
<%= task.Description %>
</li>
<% end %>
</ul>
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
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---