README.md in ndr_error-2.1.0 vs README.md in ndr_error-2.2.0

- old
+ new

@@ -36,9 +36,14 @@ not automatically configurate itself to operate in any particular way. That said, it does bundle a Rack application that can be used as part of the Rails exception-handling middleware. In the host application's `application.rb`, the following configuration can be added: +To log the error, but have the host application's routing respond: +```ruby +config.exceptions_app = NdrError::Recorder.new(self.routes) +``` +or log the error, then serve error templates from `public/` (legacy): ```ruby require 'ndr_error/middleware/public_exceptions' # Configure the ActionDispatch::ShowExceptions middleware to use NdrError's exception logger: config.exceptions_app = NdrError::Middleware::PublicExceptions.new(Rails.public_path) ```