Makes the element with the DOM ID specified by element_id sortable
by drag-and-drop and make an Ajax call whenever the sort order has changed.
By default, the action called gets the serialized sortable element as
parameters.

Example:

<%= sortable_element("my_list", :url =>{:action=>"order"})%>

In the example, the action gets a "my_list" array parameter
containing the values of the ids of elements the sortable consists of, in
the current order.

I had a sortable_element
that was also a drop_receiving_element.
After an element was dropped onto this div, an RJS action refreshed the div
with the new elements. The div expanded with these new elements, but the
sortable portion remained the same size.

To correctly be able to reorder elements after an Element.update
call (from an RJS action or wherever), you need to include a second call to
Sortable.create in your RJS view (or other JavaScript), using
sortable_element_js
or whatever method you please.

“If you want your sortable list to be scrollable, wrap the list in a div
and set the div to scrollable as apposed to making the ul element
scrollable. Also, in IE you must set “position:relative” on the
scrollable div.”

I had a sortable_element
that was also a drop_receiving_element.
element it’s dropping while dropping element into selected container
,but not element dragging is not viewble to end users. it’s dragging only
in sortable list area. but mu droppble contanier is another one.i used
scroll => true in sortable_element
. but its not working for sorting and dropping element into contianer.
could u letme know how to use both methods on same list