diff options
| author | Michel Etienne | 2013-04-12 16:27:44 +0200 | 
|---|---|---|
| committer | Michel Etienne | 2013-04-12 16:27:44 +0200 | 
| commit | f6bd8ac8c79e2a213a6e0cc7495a5037514f7801 (patch) | |
| tree | 877d16ad2b30ae3017f0ac58dc4c2ea14b51c861 /app/controllers/errors_controller.rb | |
| parent | ee2940720904785e86c342ec95fa16780d5d6455 (diff) | |
| download | chouette-core-f6bd8ac8c79e2a213a6e0cc7495a5037514f7801.tar.bz2 | |
manage error screens in chouette screens
Diffstat (limited to 'app/controllers/errors_controller.rb')
| -rw-r--r-- | app/controllers/errors_controller.rb | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/app/controllers/errors_controller.rb b/app/controllers/errors_controller.rb new file mode 100644 index 000000000..c68a60804 --- /dev/null +++ b/app/controllers/errors_controller.rb @@ -0,0 +1,9 @@ +class ErrorsController < ApplicationController +  def not_found +    render :status => 404, :formats => [:html] +  end + +  def server_error +    render :status => 500, :formats => [:html] +  end +end
\ No newline at end of file | 
