Precompile Static HTML Pages with Rails 3 Asset Pipeline24 Feb 2012
I wish I could take credit for this, but the honorable @sshconnection recommended that we just precompile 404 and 500 pages as well. And wouldn't you know that, it was way easier than you think it could be.
First get your config in place:
Just like any Rails convention, add the extensions to want to use to precompile. In my case, I used erb in my 404 page:
This probably should be labelled as a quick tip, but it was a little a-ha moment for me and I figured I'd share it.