method

draggable_element

rails latest stable - Class: ActionView::Helpers::JavaScriptHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1.0.0) is shown here.

draggable_element(element_id, options = {})
public

Makes the element with the DOM ID specified by element_id draggable.

This method requires the inclusion of the script.aculo.us JavaScript library.

Example:

  <%= draggable_element("my_image", :revert => true)

You can change the behaviour with various options, see http://script.aculo.us for more documentation.