Forum: Ruby on Rails rails 3.0.19 and exception notification 3.0.0 do not play well together

Posted by jsnark (Guest)
on 2013-01-30 19:59
(Received via mailing list)
Ever since I upgraded my applications to rails 3.0.19 due to the 
security
issue with older versions, exception notification has stopped working.
What is the fix for this problem?  Thank you.

Rendered
/var/www/rails/xxx/shared/bundle/ruby/1.9.1/gems/exception_notification-3.0.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb
(95.5ms)

ActionView::Template::Error (code converter not found (UTF-8 to 
UTF-16)):
    19:         [title, summary.gsub(/^/, "  "), nil].join("\n\n")
    20:       end
    21:     end.join
    22:     sections = sections.force_encoding('UTF-8').encode('UTF-16',
:invalid => :replace).encode('UTF-8') if
sections.respond_to?(:force_encoding)
    23: %>
    24:
    25: <%= raw sections %>
Posted by Colin Law (Guest)
on 2013-01-30 22:08
(Received via mailing list)
On 30 January 2013 18:57, jsnark <swr@monmouth.com> wrote:
>     20:       end
>     21:     end.join
>     22:     sections = sections.force_encoding('UTF-8').encode('UTF-16',
> :invalid => :replace).encode('UTF-8') if
> sections.respond_to?(:force_encoding)
>     23: %>
>     24:
>     25: <%= raw sections %>

Does this help [1].  Google found it very quickly.

Colin

[1] 
http://stackoverflow.com/questions/13061836/gettin...
Posted by jsnark (Guest)
on 2013-01-31 14:57
(Received via mailing list)
Thanks, but no, it is for the wrong version of rails.  This post has the
solution to my problem:

http://stackoverflow.com/questions/13042201/except...
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.