Hi,

when you declare the id's of the li elements like

<li id="entity_2043"></li>
<li id="entity_2560"></li>
<li id="entity_2953"></li>

then Sortable.serialize will return the part after the underscore in your id attribute in the order the are sorted as an array.

Peter Michaux wrote:

It looks like params[:list] is an array of the numbers in the li id.
Simple as that?

Thanks,
Peter
_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

_______________________________________________
Rails-spinoffs mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to