Rescue to public/404.html

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?