Rake task that allows you generate static error pages in public folder from partial

https://gist.github.com/907th/5013075

Rake task that allows you generate static error pages in public folder
from
layouts/exception partial.
Usage: rake exceptions:compile_error_pages RAILS_ENV=production.
Dependencies: colored gem for pretty output
(colored | RubyGems.org | your community gem host), rails 3.2 (tested only for that
version).