Render 404 page in case of ActiveRecord::RecordNotFound

why doesn't this happen automatically?