Odd Drag and drop sorting error Rails for nested attributes
Posted
by Senthil
on Stack Overflow
See other posts from Stack Overflow
or by Senthil
Published on 2010-03-13T15:58:24Z
Indexed on
2010/03/13
17:15 UTC
Read the original article
Hit count: 479
ruby-on-rails
|prototype
I've got this weird bug when trying to use drag and drag for two models (one nested within another). I've a category model which has many apps.
In my category index page, I tried use "content_tag_for" to sort categories and apps within each category. But for some odd reason only the first element has drag, drop enabled. I can drag and drop categories all I want, but I can't drag the app in the second category, just the first category.
Copy and paste gets ridiculously hopeless with HAML, so here's a Pastie instead.
I made a sample app on heroku for you to check out here.
Drag and drag work for both category and app, so I'm guessing it has to do something with the ul or li.
Any help is appreciated. Thanks.
© Stack Overflow or respective owner