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

前端 未结 6 2257
情深已故
情深已故 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:08

    Well, there is no need to downgrade jquery-rails to 2.3.0 or specify a GitHub branch. Just use jquery-ui-rails. To workaround the file name differences:

    Simply create app/assets/javascripts/jquery-ui.js

    //= require jquery.ui.all
    

    Create app/assets/stylesheets/jquery-ui.css

    /*
     *= require jquery.ui.all
     */
    

    These load the correct files to satisfy ActiveAdmin

提交回复
热议问题