ActiveAdmin + Jquery-ui-rails 5.0.0 gem

别等时光非礼了梦想. 提交于 2019-12-14 02:30:00

问题


I'm trying to use active admin gem but when i ran bundle it says i need jquery-ui-rails version 5.0.0 so i changed my gemfile to :

gem 'jquery-rails'
gem 'jquery-ui-rails', '~> 5.0.0'
gem 'activeadmin', github: 'gregbell/active_admin'

Upon restart my server i'm getting this error in the browser

 File to import not found or unreadable: jquery.ui.all.
    Load paths:

      /.../.../.../.../app/assets/images
      /.../.../.../.../app/assets/javascripts
      /.../.../.../.../app/assets/stylesheets

回答1:


jquery-ui-rails 5.0.0 has renamed the .js files used by ActiveAdmin.

Until Active Admin is updated, use the 4.2.1 version in your gemfile and re-bundle:

gem 'jquery-ui-rails', '~> 4.2.1'

Edit: This has just been fixed. If you require 4.2.1 now, it will break as active_admin is referencing the new paths. You should remove jquery-ui-rails from your Gemfile completely and run:

bundle update activeadmin if you required 4.2.1 before.



来源:https://stackoverflow.com/questions/24902445/activeadmin-jquery-ui-rails-5-0-0-gem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!