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
name age message
file .gitignore Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
file CHANGELOG Wed May 14 15:09:08 -0700 2008 updated readme [zilkey]
file README.rdoc Wed May 14 15:10:30 -0700 2008 updated readme [zilkey]
file Rakefile Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
directory app/ Thu May 15 19:10:01 -0700 2008 no need to order by position [zilkey]
directory config/ Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
directory db/ Thu May 15 19:10:01 -0700 2008 no need to order by position [zilkey]
directory doc/ Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
directory public/ Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
directory script/ Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
directory test/ Wed May 14 15:06:02 -0700 2008 first commit [zilkey]
directory vendor/ Wed May 14 15:23:05 -0700 2008 helper method won't output empty <ul> tags [zilkey]
README.rdoc

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.