    # File lib/action_controller/rescue.rb, line 51
          def rescue_action_in_public(exception) #:doc:
            case exception
              when RoutingError, UnknownAction
                render_text(IO.read(File.join(RAILS_ROOT, 'public', '404.html')), "404 Not Found")
              else
                render_text(IO.read(File.join(RAILS_ROOT, 'public', '500.html')), "500 Internal Error")
            end
          end