【发布时间】:2016-02-24 04:46:16
【问题描述】:
我在供应商目录中的 .js 文件中有这个:
arrowpointers:{
downarrow: ["img/arrow-down.png", 11,7], //[path_to_down_arrow, arrowwidth, arrowheight]
rightarrow: ["img/arrow-right.png", 12,12], //[path_to_right_arrow, arrowwidth, arrowheight]
showarrow: {toplevel: true, sublevel: true} //Show arrow images on top level items and sub level items, respectively?
},
我无法显示 arrow-down.png 和 arrow-right.png。我已经尝试了资产和图像路径、url 等的每种组合。所有图像都在app/assets/images 文件夹中。其他所有图像都可以正常工作,但我无法确定。有什么想法吗?
【问题讨论】:
标签: javascript ruby-on-rails-4 asset-pipeline