Background: I am upgrading an old Rails 2 application to Rails 3. This application has a feature where users can drag & drop elements between two lists. I tried to duplicate the functionality by using, Jquery demo:
http://jqueryui.com/demos/droppable/shopping-cart.html
I am able to show two lists and drag & drop between them. But I am not well versed with Jquery and don’t know how to save data.
Any help or pointers would be appreciated.
To use this data you need to take a two steps:
You are going to want to use better selectors however this code should point you in the right path.
Iterating through a list and creating an array is easy:
And then for submitting the data you could use something like this: