aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/template/error.rb
diff options
context:
space:
mode:
authorwycats <wycats@gmail.com>2010-05-30 11:07:34 +0200
committerwycats <wycats@gmail.com>2010-05-30 11:37:35 +0200
commit0078df6b54e595421bb486613f7bc3693250b592 (patch)
treea1abc9af858c6f8660ae67a0e11e685fb0f40f41 /actionpack/lib/action_view/template/error.rb
parent19d8c8cbe4aae570e3b48080e3182e5634aa7aec (diff)
downloadrails-0078df6b54e595421bb486613f7bc3693250b592.tar.gz
rails-0078df6b54e595421bb486613f7bc3693250b592.tar.bz2
rails-0078df6b54e595421bb486613f7bc3693250b592.zip
Update template to allow handlers to more cleanly handle encodings (ht: nex3)
Diffstat (limited to 'actionpack/lib/action_view/template/error.rb')
-rw-r--r--actionpack/lib/action_view/template/error.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/lib/action_view/template/error.rb b/actionpack/lib/action_view/template/error.rb
index d3a53d2147..e50de7e5af 100644
--- a/actionpack/lib/action_view/template/error.rb
+++ b/actionpack/lib/action_view/template/error.rb
@@ -13,6 +13,7 @@ module ActionView
end
def message
+ @string.force_encoding("BINARY")
"Your template was not saved as valid #{@encoding}. Please " \
"either specify #{@encoding} as the encoding for your template " \
"in your text editor, or mark the template with its " \