Odd Drag and drag bug in nested attributes Rails
- by Senthil
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.