我正在尝试在我的项目中实现Rails 3.1,但我的image_tags都没有工作。
我真的需要嵌套的has_many:through,这就是我选择升级的原因。
我知道images / javascripts / stylesheets现在应该进入app / assets /
然而,由于我的主题并发症,我想将它们公开/
我将如何这样做?
image_tag,javascript_include_tag和stylesheet_tag仅在资源目录中查找。
Started GET "/assets/icons/small/white/Alarm%20Bell.png" for 127.0.0.1 at 2011-05-27 11:04:48 -0400
Served asset /icons/small/white/Alarm%20Bell.png - 404 Not Found (0.00488s) (pid 1656)
该文件确实位于“public / images / icons / small / white / Alarm Bell.png”
由于
答案 0 :(得分:0)
知道了。
在application.rb中,在底部,将资产管道设置为false。