jquery-ztree for the Rails asset pipeline
Ruby
Switch branches/tags
Nothing to show
Latest commit f9dabac Nov 21, 2012 @nanjingboy Update README.md
Permalink
Failed to load latest commit information.
lib
vendor/assets
Gemfile
README.md
Rakefile
jquery-ztree-rails.gemspec

README.md

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
 */

Example

$.fn.zTree.init($('#treeId'), setting, nodes);