jquery-ztree-rails

This gem packages the jQuery zTree plugin for easy use with the Rails asset pipleine.

General Installation

  1. Add to the assets group in your Gemfile:
   gem 'jquery-ztree-rails'
  1. Install the gem:
   bundle install
  1. Add the JavaScript to application.js:
  //= require ztree.core
  //= require ztree.excheck
  //= require ztree.exedit
  //= require ztree.exhide
  //= require ztree.all # include ztree.core, ztree.excheck, ztree.exedit
  1. Add the stylesheets to application.css:
  /*
   *= require ztree
   */