【发布时间】:2012-02-10 19:58:01
【问题描述】:
我在 Google 上发现 jquery-ui 和 Rails 3.1 存在许多类似的问题 - 特别是未加载来自 jquery-ui 库的图像。但我仍然找不到正确的设置来实现正确的功能。
我在 SO 上关注了例如this one 线程,但我也运行了最后一个命令vendor/assets/images $ ln -s jquery_ui/ images,但不幸的是图像没有加载。我的应用中有这种资产结构:
app/assets/javascripts/application.js
//= require jquery
//= require jquery_ujs
//= require jquery-ui
//= require_tree .
供应商/资产/图像/jquery_ui
list of images
供应商/资产/javascripts/jquery-ui-1.8.17.custom.min.js
source of the library jquery-ui-1.8.17.custom.min
供应商/资产/样式表/jquery_ui/jquery-ui-1.8.17.custom.css
source of the library jquery-ui-1.8.17.custom.css
vendor/assets/stylesheets/vendor.css
/*
*= require_self
*= require_tree .
*/
谁能给点提示,我该如何解决这个问题?
【问题讨论】:
标签: jquery image jquery-ui ruby-on-rails-3.1 assets