Sha256: b49ec67b205bbc8ebbd024f3f3420d035dbfc7eda9bc253aaf8ea15f350fd820
Contents?: true
Size: 1.39 KB
Versions: 2
Compression:
Stored size: 1.39 KB
Contents
######################################## ######################################## ## _____ _ ## ## | ___ \ | | ## ## | |_/ /___ _ _| |_ ___ ___ ## ## | // _ \| | | | __/ _ \/ __| ## ## | |\ \ (_) | |_| | || __/\__ \ ## ## \_| \_\___/ \__,_|\__\___||___/ ## ## ## ######################################## ######################################## ## Good resource ## https://gist.github.com/maxivak/5d428ade54828836e6b6#merge-engine-and-app-routes ######################################## ######################################## ## Routes ## Rails.application.routes.draw do ######################################## ######################################## # => ExceptionHandler # => Used to provide error page examples in "dev" mode if Object.const_defined?('ExceptionHandler') && ExceptionHandler.config.try(:dev) # => Items Rack::Utils::SYMBOL_TO_STATUS_CODE.select{ |key, value| value.to_s.match('\b(?:4[0-9]{2}|5[0-9]{2}|599)\b') }.each do |code, status| get status.to_s, to: 'exception_handler/exceptions#show', as: code, code: code end end ######################################## ######################################## end ######################################## ########################################
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
exception_handler-0.8.0.2 | config/routes.rb |
exception_handler-0.8.0.1 | config/routes.rb |