Ruby on rails 从资产\主机配置中删除/assets/path

Ruby on rails 从资产\主机配置中删除/assets/path,ruby-on-rails,ruby-on-rails-3,asset-pipeline,Ruby On Rails,Ruby On Rails 3,Asset Pipeline,我正在为我的预编译资产使用cdn,并且它正在使用此资产\u主机配置 config.action_controller.asset_host = "http://xxxxxx.xx.rackcdn.com" 我的资产路径也出来了 http://xxxxxx.xx.rackcdn.com/assets/application-xxxxxxxxx.css 当我需要它们的时候 http://xxxxxx.xx.rackcdn.com/application-xxxxxxxxx.css 要从路径中删

我正在为我的预编译资产使用cdn,并且它正在使用此资产\u主机配置

config.action_controller.asset_host = "http://xxxxxx.xx.rackcdn.com"
我的资产路径也出来了

http://xxxxxx.xx.rackcdn.com/assets/application-xxxxxxxxx.css
当我需要它们的时候

http://xxxxxx.xx.rackcdn.com/application-xxxxxxxxx.css

要从路径中删除资产,我缺少什么配置值?

您可以通过指定来更改资产路径
config.assets.prefix='/other/path prefix'
在您的
config/application.rb
中,或仅用于
config/environments/.rb
中的特殊环境

要完全删除路径,请将其设置为空字符串:
config.assets.prefix=''