sent-hil
sent-hil

Reputation: 19305

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

Upvotes: 1

Views: 296

Answers (3)

Jack Chu
Jack Chu

Reputation: 6821

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.

Upvotes: 6

Gazler
Gazler

Reputation: 84180

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.

Upvotes: 2

robzolkos
robzolkos

Reputation: 2286

They should be in public/assets

Upvotes: 0

Related Questions