regexp match /.../n against to UTF-8 string
rails3.1.3からrails3.1.8に変更してからの苦労しているところ。
警告が出ている
c:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.8/lib/active_support/core_ext/string/output_safety.rb:23: warning: regexp match /.../n against to UTF-8 string
調べてみるとRack::Utils#escapeがRuby1.9.1だと何かアレな件(As Sloth As Possible)を見つける。
対応策
c:/Ruby193/lib/ruby/gems/1.9.1/gems/activesupport-3.1.8/lib/active_support/core_ext/string/output_safety.rb # s.gsub(/[&"'><]/n) { |special| HTML_ESCAPE[special] }.html_safe s.gsub(/[&"'><]/) { |special| HTML_ESCAPE[special] }.html_safe