Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rails/acts_as_nested_set
NOTICE: official repository moved to https://github.com/bbommarito/acts_as_nested_set
https://github.com/rails/acts_as_nested_set
Last synced: 12 days ago
JSON representation
NOTICE: official repository moved to https://github.com/bbommarito/acts_as_nested_set
- Host: GitHub
- URL: https://github.com/rails/acts_as_nested_set
- Owner: rails
- Created: 2008-05-29T20:23:10.000Z (over 16 years ago)
- Default Branch: master
- Last Pushed: 2008-05-29T20:24:04.000Z (over 16 years ago)
- Last Synced: 2024-12-17T11:02:07.483Z (17 days ago)
- Language: Ruby
- Homepage: http://rubyonrails.org
- Size: 75.2 KB
- Stars: 71
- Watchers: 7
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
ActsAsNestedSet
==============This acts_as extension provides Nested Set functionality. Nested Set is similiar to Tree, but with the added feature that you can select the children and all of their descendents with a single query. A good use case for this is a threaded post system, where you want to display every reply to a comment without multiple selects.
Example
=======class Product < ActiveRecord::Base
acts_as_nested_set
endCopyright (c) 2007 David Heinemeier Hansson, released under the MIT license