我在生产模式下运行Rails 3.2.8应用程序.在完成"rake assets:precompile"之后,我遇到了路由问题.
我的日志消息是:
ActionController::RoutingError (No route matches [GET] "/corp/assets/application-cf24b2a92e88a02835248f85a9f3c462.css"):
Run Code Online (Sandbox Code Playgroud)
此文件存在且位于当前位置.我的路线在"corp"范围内.
我的配置"config/application.rb"有选项"config.assets.enabled = true".
我的配置"config/environments/production.rb"有以下选项:
config.serve_static_assets = true
config.assets.compress = true
config.assets.compile = true
config.assets.digest = true
Run Code Online (Sandbox Code Playgroud)
应用程序在开发模式下工作正常 在那之前资产:预编译一切都很好.经过几个小时的帖子搜索,我无法找到解决问题的方法.请帮我解决这个问题!