I tried all the solution I can found here like precompiling locally, changed jquery.raty.js to jquery.raty.js.erb and others but it doesn't worked for me.
I placed the star-half.png, star-off.png, and star-on.png in app/assets/images while the jquery.raty.js is in app/assets/javascripts
Solved:
Solution that worked for me thanks to this:
config/environments/production.rb
from:
config.assets.compile = false
to:
config.assets.compile = true