为什么我的raty明星在Heroku中没有工作/加载/出现,尽管它在开发时工作得很好?
我尝试了我在这里找到的所有解决方案,比如在本地预编译,将jquery.raty.js更改为jquery.raty.js.erb和其他,但它对我不起作用。
我在app / assets / images中放置了star-half.png,star-off.png和star-on.png,而jquery.raty.js在app / assets / javascripts中
解决了:
解决方案对我有用, 这要归功于:
配置/环境/ production.rb
从:
config.assets.compile = false
至:
config.assets.compile = true