zorab47 / active_admin-sortable_tree

Show ActiveAdmin index as a nested tree with drag'n'drop
MIT License
162 stars 127 forks source link

Installation #42

Closed JohnSmall closed 9 years ago

JohnSmall commented 9 years ago

Ah, there seems to be a bit more to installing that just adding the gem and bundling. I need jquery.ui.sortable, and even though I've added it to my application.js and application.css along with the jquery-ui-rails gem it's still not working.

Starting with a completely clean installation, what's the secret to installing your gem?

JohnSmall commented 9 years ago

Ah, I see what the problem is. In sortable.js.coffee you've got

= require jquery.ui.sortable

but it should be

= require jquery-ui/sortable

Unless I make that change I can't precompile my assets.

Is anyone else having this problem. Is it just me?

zorab47 commented 9 years ago

There are several PRs fixing the issue #32, #35, #36, #39, and #40. I've integrated the jQuery UI fix into my branch and the active_admin-sortable_tree gem. Installing from RubyGems may be an easier option.

zorab47 commented 9 years ago

I've updated the JS require to use jquery-ui/sortable.