I\'ve seen a few posts similar to this but with no solutions, so I figured I would present a more documented problem.
My Problem JS from manifest fi
Rajesh's solution did work for me too. I was using 2.0.0-p195 and rake assets:precompile on production didn't really read application.js and I ended up having the file application-###.js with the size of 1kb.
So I went back to ruby 1.9.3, updated the bundle, cleared the cache manually by
rm -rf tmp/cache/assets/*
rm -rf tmp/cache/sass/*
and then
in my application.js, I have
//= require jquery
//= require bootstrap
//= require_tree .
note that I don't use jquery-ui or jquery_ujs
then I ran
rake RAILS_ENV=production RAILS_GROUP=assets assets:clean
rake RAILS_ENV=production RAILS_GROUP=assets assets:precompile
Now it works.
I had the same problem, took long time to find a solutions to this.
I just switched back to ruby-1.9.3-p429
, and it resolved the problem. I don't know how to manage it with ruby 2 patches
. I have used ruby-2.0.0-p247
and ruby-2.0.0-p195
.
So, just do rvm use ruby-1.9.3-p429
. Then run 'bundle update'. Then clear the Rails cache by running Rails.cache.clear
in the console and also don't forget to clear the browser cache.
Hope it goes fine. :)-