Ajax Drog and Drop

Take a look at the demo.
http://demo.script.aculo.us/shop

first you have to unsderstand the rails elements used there.
view, controller, partial.

buying the rails book is probably the best way to understand and
learnb rails.

HTH