Topic: assets:precompile - problem with filename generated dynamically

In view (erb) i have:

<%= image_tag("#{account.status}.png") %>

"account.status" is integer from database between 1-15
I'm using assets pipeline. I have all png files in app/assets/images, files from 1.png to 15.png
All is working in development enviroment.
After precompile assets with:

$rake assets:precompile

server in production mode generating error:

ActionView::Template::Error (11.png  isn't precompiled)

File 11.png is precompiled, in public/assets i got:

Filenames are declared in manifest.yml as well.

So, what i'm doing wrong?

Last edited by ichi (2012-07-20 06:55:24)