Sha256: 9702e9b6811070dc6514e080f5c58986868b7a5034f0af98a6e0ff35f4e260a1

Contents?: true

Size: 582 Bytes

Versions: 1

Compression:

Stored size: 582 Bytes

Contents

jQuery is required.

In the Gemfile
  gem 'sortable_nested_set'

In each "Category" model (e.g. "Directory"):
  acts_as_sortable_nested_set_of :items
where :items is the pluralized Item model (e.g. "File").

In each "Category" controller:
  handles_sortable_nested_set
to include menu actions.

In the routes config file:
  sortable_nested_set_for :categories
for each pluralized "Category" model.

In each "Category" migration:
  name:string
  lft:integer
  rgt:integer

In each "Item" migration:
  position:integer

Helpers:
  sns_options
  sns_lineage
  sortable_nested_set_tree

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sortable_nested_set-0.2.2 README