Rails 3.1.rc1图像标签

时间:2011-05-27 15:21:18

标签: ruby-on-rails-3.1

我正在尝试在我的项目中实现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”

由于

1 个答案:

答案 0 :(得分:0)

知道了。

在application.rb中,在底部,将资产管道设置为false。