title: Rails: How do I create a custom 404 error page that uses the asset pipeline?
body: <p>There are many solutions for creating customized error handling pages, but almost none for  Rails 4:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/1447627/basic-rails-404-error-page">Basic Rails 404 Error Page</a></li>
  <li><a href="http://wearestac.com/blog/dynamic-error-pages-in-rails" rel="noreferrer">Dynamic error pages in Rails</a></li>
  </ul>
  
  <p>The standard answer of encouraging people to modify <code>404.html</code> in <code>/public</code> doesn't work for me because I want to use the CSS theme that resides in the asset pipeline. <strong>Is there a way that html files can access those styles defined in the asset pipeline?</strong> If not, <strong>is there a way to create a custom error handler that has access to the pipeline?</strong></p>