Skip to content

Instantly share code, notes, and snippets.

@stream7
stream7 / favorite_gems.md
Created August 29, 2011 18:07 — forked from ryanb/favorite_gems.md
A list of my favorite gems for various tasks.
@stream7
stream7 / README.markdown
Created August 13, 2011 11:33 — forked from ariera/README.markdown
Nestable, sortable and dragable categories

Nestable, sortable and dragable categories:

In the project I'm working on we wanted to have a Category model which we wanted to be nestable. But we also liked the user to have a draggable interface to manage and rearrange the order of his categories. So we chose awesome_nested_set for the model and jQuery.nestedSortable for the UI.

It took me some time to arrange things to work properly so I wanted to share my work in case it helps anybody.

Before beginning

you might want to take a look at a demo app

  1. go to: http://awesomenestedsortable.heroku.com/groups/
  2. click in show of any group