Forum: Ruby on Rails Sorting Lists with handle option

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2db3a32b41505fca3f96ad08d4865f0e?d=identicon&s=25 Jeff Blasius (Guest)
on 2006-01-18 00:24
(Received via mailing list)
Does anyone have an example of sortable_element using the handle option?
http://wiki.script.aculo.us/scriptaculous/show/Draggable

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,
                        jeff
This topic is locked and can not be replied to.