Sha256: 8468ca692f5cc702acfd11df4a482df022aba2b1337918847c1a3ff23b3b2bd3

Contents?: true

Size: 1.78 KB

Versions: 6

Compression:

Stored size: 1.78 KB

Contents

# jqtree-rails

Adds [jqTree](https://github.com/mbraak/jqTree) to the Rails 3 asset pipeline.

## Installation

In your Gemfile, add the following lines:

```ruby
gem :assets do
  gem 'jqtree-rails'
end
```

Now run `bundle install`.

### Rails 3.0

This gem adds a single generator to Rails 3, `jq_tree:install`.

Running the generator will copy over the assets to your assets to your public directory.

### Rails 3.1 or greater

For Rails 3.1 and greater, the files will be added to the asset pipeline and available for you to use.

Simply the following to `app/assets/javascripts/application.js`:

    //= require tree.jquery

And the following to `app/assets/stylesheets/application.css`:

    /*
     *= require jqtree
     */

## saveState

To enable `saveState`, simply follow the installation instructions for [http://github.com/c00lryguy/jquery-cookie-rails](jquery-cookie-rails).

jqTree will detect `jquery.cookie.js` and will enable `saveState`.

## Props

I didn't write any of the Javascript included within jqTree.  
All props goto [mbraak](https://github.com/mbraak).

## Contributing

* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
* Fork the project
* Start a feature/bugfix branch
* Commit and push until you are happy with your contribution
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.

## Copyright

Copyright (c) 2012 Ryan Lewis. See LICENSE for details.

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jqtree-rails-0.1.8.1 README.md
jqtree-rails-0.1.8.0 README.md
jqtree-rails-0.1.5.0 README.md
jqtree-rails-0.1.4.3 README.md
jqtree-rails-0.1.4.2 README.md
jqtree-rails-0.1.3 README.md