Drag and drop in tables

hi all,
i have 2 tables for drag and drop in my rhtml, both displaying their
name, and related records from the database table. If i drop the
element of one table’s

into another table’s , it should count
number of drops and update the db table with the related records from
the drgged db table.

if anyone have code, help…

madhan.