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

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

    In my case, the jquery issue was due to a gem I was using. I wasn't using jquery directly, so adding app/assets/js/jquery-ui.js to my project didn't help.

    Adding gem "jquery-rails", "< 3.0.0" to my gemfile fixed it, but I got an issue with turbolinks immediately after that, which is easy enough to fix...

    My final gemfile:

    # Temporary fix for jquery issue
    gem "jquery-rails", "< 3.0.0"
    gem 'turbolinks'
    

    ... easy peasy

提交回复
热议问题