rails active admin deployment : couldn't find file 'jquery-ui'

前端 未结 6 2268
情深已故
情深已故 2020-12-04 17:03

when trying to deploy with capistrano, when capistrano use command bundle exec rake

    RAILS_ENV=production 
    RAILS_GROUPS=assets 
    assets:precompile         


        
6条回答
  •  没有蜡笔的小新
    2020-12-04 17:04

    Though the Pull request has been merged into AA by now, you will still have this problem if you work with the latest release of AA. I don't like to force JQuery-rails down to version 2.3.0 so here's an alternative solution to the problem: In the active_admin.js file replace

    //= require active_admin/base
    

    with

    //= require jquery
    //= require jquery_ujs
    //= require jquery.ui.core
    //= require jquery.ui.widget
    //= require jquery.ui.datepicker
    //= require active_admin/application
    

    kudos to Fred for providing that solution here.

提交回复
热议问题