zorab47 / active_admin-sortable_tree

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

'jquery_ui_six?': uninitialized constant Jquery::Ui (NameError) #68

Closed masaki1002 closed 6 years ago

masaki1002 commented 7 years ago

In terminal, what seems the be the error below prevents me from running the sever successfully. Any clue? Thanks!

/Users/masakioeda/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/active_admin-sortable_tree-1.0.0/lib/active_admin/sortable_tree/engine.rb:11:in `jquery_ui_six?': uninitialized constant Jquery::Ui (NameError)

masaki1002 commented 6 years ago

This particular issue has been solved on my end by re-installing activeadmin with the version of "1.0.0.pre1".

zorab47 commented 6 years ago

Is this issue resolved?

sumeetattree commented 6 years ago

Having the same issue with ActiveAdmin 2.0.0.alpha

masaki1002 commented 6 years ago

Yes, lowering the version of activeadmin to "1.0.0.pre1" solved out the issue on my end. Please advise me in case there is any other way to work out this issue, apart from what I did.

supremebeing7 commented 6 years ago

Not positive, but I suspect the issue is that activeadmin 1.1 dropped the jquery-ui-rails gem in favor of a vendored solution: https://github.com/activeadmin/activeadmin/pull/5052

I thought having this line in the gemspec here would avoid any issues but apparently not.

I added gem 'jquery-ui-rails', '>= 5.0.0' to my gemfile and it worked again.

zorab47 commented 6 years ago

@supremebeing7 yes, you're right. I'm currently working on a major release with full ActiveAdmin v1.1.0 support.