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 /app/controllers/errors_controller.rb | |
| parent | 23403a7344eeb2d0c4f052c984baa49b8c58154c (diff) | |
| download | chouette-core-c1eccef1259c7f7068f0b2f9dad15c79cdae49b1.tar.bz2 | |
Refs #3033 : Attempt #2 to display 403 page
Diffstat (limited to 'app/controllers/errors_controller.rb')
| -rw-r--r-- | app/controllers/errors_controller.rb | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index 78e7285bc..accf119a3 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -1,13 +1,14 @@  class ErrorsController < ApplicationController    def not_found -    render status: 404, formats: [:html] +    render template: 'errors/not_found', status: 404, formats: [:html]    end    def server_error -    render status: 500, formats: [:html] +    render template: 'errors/server_error', status: 500, formats: [:html]    end    def not_allowed -    render status: 403, formats: [:html] +    render template: 'errors/not_found', status: 403, formats: [:html]    end  end + | 
