public
Description: A demo of how to create an app using betternestedset with validations various display options
Homepage:
Clone URL: git://github.com/zilkey/nested_set_demo.git
nested_set_demo / README.rdoc
100644 24 lines (13 sloc) 0.627 kb

Installation

Make sure you have sqlite3 - for mac users with macports just run:

  sudo port install sqlite3
  sudo port install rb-sqlite3

Grab the app

  git clone git://github.com/zilkey/nested_set_demo.git

Start the server (the db is already here - no need to migrate)

This runs off of the betternestedset plugin found at:

  http://opensource.symetrie.com/trac/better_nested_set/

To install this plugin in your app, run:

  script/plugin install svn://rubyforge.org/var/svn/betternestedset/trunk

Figuring out what’s happening

The code has lots of comments in it - particularly the model, migration and helper.