Rails.application.config.assets.paths,这个输出是否正确?

时间:2013-01-20 02:04:05

标签: twitter-bootstrap ruby-on-rails-3.1 ruby-on-rails-3.2 asset-pipeline

我正在尝试解决我的Rails 3.2 Twitter Bootstrap主题。有些东西不能正常工作。当我运行此命令时,我得到以下输出看起来不正确或显示路径。谁知道我做错了什么?

1.9.3p125:003> y Rails.application.config.assets.paths

  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvYXBwL2Fzc2V0cy9mb250
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvYXBwL2Fzc2V0cy9pY28 =
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvYXBwL2Fzc2V0cy9pbWFnZXM =
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvYXBwL2Fzc2V0cy9qYXZhc2NyaXB0cw ==
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvYXBwL2Fzc2V0cy9zdHlsZXNoZWV0cw ==
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvdmVuZG9yL2Fzc2V0cy9qYXZhc2NyaXB0cw ==
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvdmVuZG9yL2Fzc2V0cy9zdHlsZXNoZWV0cw ==
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vLnJ2bS9nZW1zL3J1YnktMS45LjMtcDEyNUBm bGV0Y2hlci9nZW1zL2pxdWVyeS1yYWlscy0yLjAuMi92ZW5kb3IvYXNzZXRz L2phdmFzY3JpcHRz
  • !二进制| - L1VzZXJzL21hcmtydXNzb24vLnJ2bS9nZW1zL3J1YnktMS45LjMtcDEyNUBm bGV0Y2hlci9nZW1zL2NvZmZlZS1yYWlscy0zLjIuMi9saWIvYXNzZXRzL2ph dmFzY3JpcHRz
  • 红宝石/对象:路径名 路径:!二进制| - L1VzZXJzL21hcmtydXNzb24vRG9jdW1lbnRzL3dlYnNpdGVzL2hvc3Rpbmcv ZmxldGNoZXIvYXBwL2Fzc2V0cy9mb250 => nil

1 个答案:

答案 0 :(得分:1)

您的输出绝对正常。它表示由命令返回的Ruby对象。 您可以在控制台上试用此代码:

Rails.application.config.assets.paths.each do |p|
  puts p
end

您的申请中还有哪些不正确?