diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-03 10:23:02 -0600 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-12-03 10:23:02 -0600 |
commit | f54ae9a9976ec6b4ec228a535edd9b32cc60c43d (patch) | |
tree | 801dd5034c5c713a5a9bccc4baf9e7369a0eb0bc /actionpack | |
parent | eb5e6fe713756b36ee6df9b04f28cfb8bae60dbc (diff) | |
download | rails-f54ae9a9976ec6b4ec228a535edd9b32cc60c43d.tar.gz rails-f54ae9a9976ec6b4ec228a535edd9b32cc60c43d.tar.bz2 rails-f54ae9a9976ec6b4ec228a535edd9b32cc60c43d.zip |
Fix failsafe response path. [#1504 state:committed]
Diffstat (limited to 'actionpack')
-rw-r--r-- | 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 6e4aba2280..e7345621cc 100644 --- a/actionpack/lib/action_controller/dispatcher.rb +++ b/actionpack/lib/action_controller/dispatcher.rb @@ -61,7 +61,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..2]}.html" if File.exist?(error_path) File.read(error_path) |