Odd Drag and drag bug in nested attributes Rails

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 16:05 UTC
Read the original article Hit count: 592

Filed under:
|

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

Related posts about ruby-on-rails

Related posts about prototype