diff options
| author | Vlatka Pavisic | 2017-04-20 13:48:21 +0200 | 
|---|---|---|
| committer | Vlatka Pavisic | 2017-04-20 13:48:21 +0200 | 
| commit | 23403a7344eeb2d0c4f052c984baa49b8c58154c (patch) | |
| tree | 6d1ef25f4b4224b3cd019d8de338a4a509712832 /app/controllers/errors_controller.rb | |
| parent | 5fa880abef8d8bebbfb91f1db2ad9b99cdbcf341 (diff) | |
| download | chouette-core-23403a7344eeb2d0c4f052c984baa49b8c58154c.tar.bz2 | |
Refs #3033 : Attempt to display 403 page
Diffstat (limited to 'app/controllers/errors_controller.rb')
| -rw-r--r-- | app/controllers/errors_controller.rb | 10 | 
1 files changed, 7 insertions, 3 deletions
| diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb index c68a60804..78e7285bc 100644 --- a/app/controllers/errors_controller.rb +++ b/app/controllers/errors_controller.rb @@ -1,9 +1,13 @@  class ErrorsController < ApplicationController    def not_found -    render :status => 404, :formats => [:html] +    render status: 404, formats: [:html]    end    def server_error -    render :status => 500, :formats => [:html] +    render status: 500, formats: [:html]    end -end
\ No newline at end of file + +  def not_allowed +    render status: 403, formats: [:html] +  end +end | 
