sprockets-rails icon indicating copy to clipboard operation
sprockets-rails copied to clipboard

Manifest and Environment resolver inconsistencies

Open cainlevy opened this issue 8 years ago • 1 comments

The Environment resolver uses a forgiving search pattern that does not require assets such as images to specify their extension. The Manifest resolver does not. This means that given a app/assets/images/foo.png, syntax like image_tag('foo') will resolve fine locally and fail spectacularly when deployed to production.

Is this intended? It seems very error-prone.

cainlevy avatar May 25 '17 19:05 cainlevy

I encountered the same problem. My teammate insert image_tag('bar') in the index page, it worked in development environment, but crashed in production environment. That was terrible. I think we should make it consistent in any environment.

teeceepee avatar Nov 15 '17 11:11 teeceepee