Closed leabdalla closed 10 years ago
Which version of ActiveAdmin are you using? The activeadmin-sortable-tree gem depends on ActiveAdmin to provide the jquery-ui-rails dependency. I'd like to ensure that it works with all currently maintained version of AA.
Could you also provide your Gemfile.lock for reference?
my gemfile.lock
GIT
remote: git://github.com/nebirhos/activeadmin-sortable-tree.git
revision: 46bd17031e50a1243a91b07610e7830f35c55335
branch: master
specs:
activeadmin-sortable-tree (0.0.1)
activeadmin
rails (>= 3.2)
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.15)
actionpack (= 3.2.15)
mail (~> 2.5.4)
actionpack (3.2.15)
activemodel (= 3.2.15)
activesupport (= 3.2.15)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
activeadmin (0.6.2)
arbre (~> 1.0)
bourbon (>= 1.0.0, < 4)
devise (>= 1.5.4, < 4)
formtastic (~> 2.0)
inherited_resources (~> 1.3)
jquery-rails (>= 1.0.0, < 3)
kaminari (~> 0.13)
meta_search (~> 1.0)
rails (>= 3.0.0, < 4)
sass (~> 3.1)
activemodel (3.2.15)
activesupport (= 3.2.15)
builder (~> 3.0.0)
activerecord (3.2.15)
activemodel (= 3.2.15)
activesupport (= 3.2.15)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.15)
activemodel (= 3.2.15)
activesupport (= 3.2.15)
activesupport (3.2.15)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
ancestry (2.0.0)
activerecord (>= 3.0.0)
arbre (1.0.1)
activesupport (>= 3.0.0)
arel (3.0.3)
atomic (1.1.14)
bcrypt-ruby (3.1.2)
bourbon (3.1.8)
sass (>= 3.2.0)
thor
builder (3.0.4)
celluloid (0.15.2)
timers (~> 1.1.0)
coderay (1.1.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
devise (3.2.2)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.0.2)
ffi (1.9.3)
formatador (0.2.4)
formtastic (2.2.1)
actionpack (>= 3.0)
guard (2.2.4)
formatador (>= 0.2.4)
listen (~> 2.1)
lumberjack (~> 1.0)
pry (>= 0.9.12)
thor (>= 0.18.1)
guard-rails (0.4.7)
guard (>= 0.2.2)
has_scope (0.6.0.rc)
actionpack (>= 3.2, < 5)
activesupport (>= 3.2, < 5)
hike (1.2.3)
i18n (0.6.5)
inherited_resources (1.4.1)
has_scope (~> 0.6.0.rc)
responders (~> 1.0.0.rc)
journey (1.0.4)
jquery-rails (2.3.0)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
kaminari (0.15.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
listen (2.2.0)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9)
lumberjack (1.0.4)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_search (1.1.3)
actionpack (~> 3.1)
activerecord (~> 3.1)
activesupport (~> 3.1)
polyamorous (~> 0.5.0)
method_source (0.8.2)
mime-types (1.25.1)
multi_json (1.8.2)
orm_adapter (0.5.0)
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
pry (0.9.12.4)
coderay (~> 1.0)
method_source (~> 0.8)
slop (~> 3.4)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.15)
actionmailer (= 3.2.15)
actionpack (= 3.2.15)
activerecord (= 3.2.15)
activeresource (= 3.2.15)
activesupport (= 3.2.15)
bundler (~> 1.0)
railties (= 3.2.15)
railties (3.2.15)
actionpack (= 3.2.15)
activesupport (= 3.2.15)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.1.0)
rb-fsevent (0.9.3)
rb-inotify (0.9.2)
ffi (>= 0.5.0)
rdoc (3.12.2)
json (~> 1.4)
responders (1.0.0)
railties (>= 3.2, < 5)
sass (3.2.12)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
slop (3.4.7)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.8)
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
timers (1.1.0)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.38)
uglifier (2.3.1)
execjs (>= 0.3.0)
json (>= 1.8.0)
warden (1.2.3)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
activeadmin
activeadmin-sortable-tree!
ancestry
coffee-rails (~> 3.2.1)
guard-rails
jquery-rails
meta_search (>= 1.1.0.pre)
rails (= 3.2.15)
sass-rails (~> 3.2.3)
sqlite3
uglifier (>= 1.0.3)
So the issue seems to be an incompatible version of jquery-rails, v2.3.0, which does not breakout the jquery.ui components into separate files. Instead it only contains the entire UI library as "jquery-ui".
You might try adding the jquery-ui-rails gem to your Gemfile as a quick fix:
gem "jquery-ui-rails"
As a long-term fix I'd recommend that activeadmin-sortable-tree add jquery-ui-rails as a dependency for older versions of ActiveAdmin.
now it works, thank you so much!
I tried to install this plugin for first time, so I'm getting this error: