diff options
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/config/routes.rb b/config/routes.rb index 538c069ed..5b9cf0ea8 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -213,11 +213,9 @@ ChouetteIhm::Application.routes.draw do get '/help/(*slug)' => 'help#show' - if Rails.env.production? - get '404', to: 'errors#not_found' - get '403', to: 'errors#not_allowed' - get '422', to: 'errors#server_error' - get '500', to: 'errors#server_error' - end + match '/404', to: 'errors#not_found', via: :all + match '/403', to: 'errors#not_allowed', via: :all + match '/422', to: 'errors#server_error', via: :all + match '/500', to: 'errors#server_error', via: :all end |
