Ruby on rails 3 Rails 3.1.11资产预编译链轮不工作
Rails 3.1.11资源预编译不适用于图像、css和js对于css和js,它会调用每个文件并增加加载时间,对于图像,它不会从编译路径中获取图像 我运行了以下命令来预编译资产:Ruby on rails 3 Rails 3.1.11资产预编译链轮不工作,ruby-on-rails-3,ruby-on-rails-3.1,asset-pipeline,production-environment,precompile,Ruby On Rails 3,Ruby On Rails 3.1,Asset Pipeline,Production Environment,Precompile,Rails 3.1.11资源预编译不适用于图像、css和js对于css和js,它会调用每个文件并增加加载时间,对于图像,它不会从编译路径中获取图像 我运行了以下命令来预编译资产: rake assets:precompile 它将资产目录置于我的应用程序的公共目录下, 并创建了图像加载-91e9fa95ae55553f2c46cbfa9a9940de.gif,就像这样,但当我尝试获取这些图像时,它不会从路径加载单个图像。我正在使用下面显示的图像标签 <%= image_tag('the
rake assets:precompile
它将资产目录置于我的应用程序的公共目录下,
并创建了图像加载-91e9fa95ae55553f2c46cbfa9a9940de.gif,就像这样,但当我尝试获取这些图像时,它不会从路径加载单个图像。我正在使用下面显示的图像标签
<%= image_tag('theme_images/img/gemicon/edit.png') %>
其源图像路径为“app_root/public/assets/theme_images/img/gemicon/edit.png”