Forum: Ruby on Rails Sorting Lists with handle option

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 B. (Guest)
on 2006-01-18 01:24
(Received via mailing list)
Does anyone have an example of sortable_element using the handle option?

My Code:
<%= sortable_element 'listorder',
      :update => 'questions',
      :complete => visual_effect(:highlight, 'listorder'),
      :handle => 'drag',
      :url => { :controller => 'items', :action => "order", :item_id
=> session[:item_id]} if @edit %>

In this case is 'drag' class='drag' on each handle?

It's not working.
Thank You,
This topic is locked and can not be replied to.