diff options
| author | Vlatka Pavisic | 2017-04-20 14:18:01 +0200 | 
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-20 14:18:01 +0200 | 
| commit | c1eccef1259c7f7068f0b2f9dad15c79cdae49b1 (patch) | |
| tree | 041e38b41ed6ec24895bab9c5ecd220863bc4d65 /config/routes.rb | |
| parent | 23403a7344eeb2d0c4f052c984baa49b8c58154c (diff) | |
| download | chouette-core-c1eccef1259c7f7068f0b2f9dad15c79cdae49b1.tar.bz2 | |
Refs #3033 : Attempt #2 to display 403 page
Diffstat (limited to 'config/routes.rb')
| -rw-r--r-- | config/routes.rb | 10 | 
1 files changed, 6 insertions, 4 deletions
diff --git a/config/routes.rb b/config/routes.rb index a8c332fb8..538c069ed 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -213,9 +213,11 @@ ChouetteIhm::Application.routes.draw do    get '/help/(*slug)' => 'help#show' -  get '/404', to: 'errors#not_found' -  get '/403', to: 'errors#not_allowed' -  get '/422', to: 'errors#server_error' -  get '/500', to: 'errors#server_error' +  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  end  | 
