开发者

Rails 3.1 asset pipeline: Where is the location of the compiled files?

vendor/assets/ is empty. Can't seem to find the compiled files anywhere.

开发者_如何学运维

EDIT: Unfortunately they are not in public/assets


If you run:

rake assets:precompile

they write to 'public/assets'.

If you don't precompile and let rails serve assets on the fly, then they write on the first request of each action to 'tmp/cache/assets'.

The asset pipeline Rails guide calls it live compilation.


http://ryanbigg.com/guides/asset_pipeline.html#asset-organization

They should be in public/assets when compiled and are appended with an md5 hash.

vendor/assets is where I would recommend putting assets that are not maintained by you.


They should be in public/assets

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜