From 17373edd1405b1ba9252b6c2a06d28070686227a Mon Sep 17 00:00:00 2001 From: tmtysk Date: Tue, 8 Jul 2008 12:05:46 +0900 Subject: [PATCH] Fixed taking String_of_status_code from status to use for filename on failsafe_response. --- actionpack/lib/action_controller/dispatcher.rb | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/actionpack/lib/action_controller/dispatcher.rb b/actionpack/lib/action_controller/dispatcher.rb index 7df987d..36f0f45 100644 --- a/actionpack/lib/action_controller/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatcher.rb @@ -66,7 +66,7 @@ module ActionController private def failsafe_response_body(status) - error_path = "#{error_file_path}/#{status.to_s[0..3]}.html" + error_path = "#{error_file_path}/#{status.to_s[0,3]}.html" if File.exist?(error_path) File.read(error_path) -- 1.5.3.7