If you want the error page to use images from the asset pipeline, you have two options:
- Use dynamic error pages (I wrote a tutorial here ).
- The monkey fixes the asset pipeline to allow no fingerprints.
Since you are now excluding option # 1, I think the monkey patch is the way to go. Install a non-stupid-digest-assets gem in your application. This will lead to the correction of the asset market so that it will issue assets without a fingerprint (in addition to fingerprints).
# Gemfile gem "non-stupid-digest-assets"
And, of course, do not forget:
$ bundle install
Then in your 404.html just refer to the asset as if it were a static file, for example:
<img src="/assets/my-image.png">
This assumes that the actual image is saved here in your project:
app/assets/images/my-image.png
source share