Why is my raty stars not working/loading/appearing in Heroku although it works perfectly fine on development?

痴心易碎 提交于 2019-12-21 18:39:12

问题


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

来源:https://stackoverflow.com/questions/35168574/why-is-my-raty-stars-not-working-loading-appearing-in-heroku-although-it-works-p

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!