Forum: Ruby on Rails drop_receiving_element help needed

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
jeff.gray (Guest)
on 2005-12-08 18:27
(Received via mailing list)
hello all. I am trying to use the drop_receiving_element to update a
database. I can't figure out how to send the draggable DOM ID and
droppable DOM ID to the controller. Any ideas?

Here is my code so far:

<%= drop_receiving_element  "alb",

      :accept => "item", :hoverclass => "item-active",

      :url => {:controller=> 'tapebackup',

      :action => 'test'}


In my controller, I need to get the element id of the item that was
dragged with draggable_element

Any help is greatly appreciated.

This topic is locked and can not be replied to.