-->

Why is my raty stars not working/loading/appearing

2019-04-09 15:20发布

问题:

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