diff options
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 131b504..a2798c3 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -185,50 +185,50 @@ protected def rescue_body_401 @http_error= $! logger.error $!.to_s - render :text => "#{$!.to_s}\n", :layout => false, :status => 401 + render :plain => "#{$!.to_s}\n", :layout => false, :status => 401 end def rescue_body_500 @http_error= $! logger.error $!.to_s - render :text => "#{$!.to_s}\n", :layout => false, :status => 500 + render :plain => "#{$!.to_s}\n", :layout => false, :status => 500 end def rescue_body_400 @http_error= $! logger.error $!.to_s - render :text => "#{$!.to_s}\n" , :layout => false, :status => 400 + render :plain => "#{$!.to_s}\n" , :layout => false, :status => 400 end def rescue_body_403 @http_error= $! logger.error $!.to_s - render :text => "#{$!.to_s}\n" , :layout => false, :status => 403 + render :plain => "#{$!.to_s}\n" , :layout => false, :status => 403 end def rescue_body_404 @http_error= $! logger.error $!.to_s if $!.to_s.blank? - render :text => "The server does not know the ressource\nor the message queue in question is empty.\n" , :layout => false, :status => 404 + render :plain => "The server does not know the ressource\nor the message queue in question is empty.\n" , :layout => false, :status => 404 else - render :text => "#{$!.to_s}\n" , :layout => false, :status => 404 + render :plain => "#{$!.to_s}\n" , :layout => false, :status => 404 end end def rescue_body_409 @http_error= $! logger.error $!.to_s - render :text => "#{$!.to_s}\n" , :layout => false, :status => 409 + render :plain => "#{$!.to_s}\n" , :layout => false, :status => 409 end def rescue_body_415(controller_binding) @http_error= $! logger.error $!.to_s if $!.to_s.blank? - render :text => "The format of the client data is not supported by the server.\nIf your format is right please doublecheck the encoding !\nIt has to be UTF8 !\n", :layout => false, :status => 415 + render :plain => "The format of the client data is not supported by the server.\nIf your format is right please doublecheck the encoding !\nIt has to be UTF8 !\n", :layout => false, :status => 415 else - render :text => "#{$!.to_s}\n" , :layout => false, :status => 415 + render :plain => "#{$!.to_s}\n" , :layout => false, :status => 415 end end |