rescues from made up urls (routing exceptions) and madeup records (recordnotfound exceptions), by adding a line at the end of routes.rb and an error controller , aand a rescue_from_exception method in application_controller