Hi,
when you declare the id's of the li elements like
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?
It looks like params[:list] is an array of the numbers in the li id.
Simple as that?
Thanks,
Peter
___
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs