when trying to deploy with capistrano, when capistrano use command bundle exec rake
RAILS_ENV=production
RAILS_GROUPS=assets
assets:precompile
I know this is already solved. But I want to give one more solution to this that worked for me.
I am running Rails 4.0.8 when having this issue.
I simply remove explicit version number for jquery-rails gem jquery-ui-rails gem.
Mine looks like this essentially:
# js
gem 'jquery-ui-rails'
gem 'jquery-rails'
# rails admin
gem 'rails_admin'
Gemfile.lock kinda figured out the correct version for all three gems automatically.