# Rescue to public/404.html

**URL:** <https://www.ruby-forum.com/t/rescue-to-public-404-html/55410>\
**Category:** Rails\
**Created:** [March 20, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/rescue-to-public-404-html/55410 "2006-03-20T22:19:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yaroslav\_Markin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/y/fbc32d/32.png) [@Yaroslav\_Markin](https://www.ruby-forum.com/u/Yaroslav_Markin)\
**Post date:** [March 20, 2006, 10:19pm UTC](https://www.ruby-forum.com/t/rescue-to-public-404-html/55410/1 "2006-03-20T22:19:20Z")

</div>

Hi there,

Could anyone share your experience, what is the best way to handle  
ActiveRecord errors?

Of course, I can rescue it in the controller and do everything I want.  
But is there any way to display 404.html from public/ in this very case?
