title: Ruby on rails - add exception stack trace to 500 error page?
body: <p>I have a Rails 3 application, currently when an internal error occurs it displays one of the pages listed in:</p>
  
  <pre>
  ./views/exceptions/internal_server_error.html.haml
  ./views/exceptions/internal_server_error.json.erb
  </pre>
  
  <p>How can I get the HTML 500 error page to display a stack trace of the exception?  I am running Apache not Webrick and I want the exception to display in both production and dev. modes, as this is an internal app.  I tried displaying @exception in the internal_server_error.html.haml page but it wasn't populated.</p>