title: Catch all exceptions and display dynamic error page Ruby on Rails 4
body: <p>I am currently working on a Rails 4 app and have come to the point where I want to display a custom error page to the user when any exception occurs. Currently it is using the 500.HTML in the public directory.</p>
  
  <p>How can I get the app to render an erb file instead as I want to have some dynamic stuff on the page.</p>
  
  <p>Thanks for you help,
  Alex</p>