Forum: Rails Spinoffs (closed, excessive spam) Generated html not sortable?

Posted by DAZ (Guest)
on 2008-06-11 11:44
(Received via mailing list)
Hi,

I'm using the rails sortable_element helper on a list and after it has
been sorted I have used this code:
  page['page_' + p.id.to_s].replace :partial => 'page', :locals =>
{ :page => p }

to replace the list items that changed order as the html has to
change.

The problem is that any of the list items that are 'replaced' are now
not sortable. Is this expected behavior and is there a fix or a
workaround?

thanks,

DAZ
Posted by T.J. Crowder (Guest)
on 2008-06-11 13:38
(Received via mailing list)
You're probably better off asking this over in the Ruby on Rails
group:
http://groups.google.com/group/rubyonrails-talk
--
T.J. Crowder
tj / crowder software / com
This topic is locked and can not be replied to.