jsnark
2013-Jan-30 18:57 UTC
rails 3.0.19 and exception notification 3.0.0 do not play well together
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 %> -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/C8vHnsvBN68J. For more options, visit https://groups.google.com/groups/opt_out.
Colin Law
2013-Jan-30 21:06 UTC
Re: rails 3.0.19 and exception notification 3.0.0 do not play well together
On 30 January 2013 18:57, jsnark <swr-I/mPKdbEGRBWk0Htik3J/w@public.gmane.org> wrote:> 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 %>Does this help [1]. Google found it very quickly. Colin [1] http://stackoverflow.com/questions/13061836/getting-this-error-in-rails-actionviewtemplateerror-code-converter-not-fo -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
jsnark
2013-Jan-31 13:56 UTC
Re: rails 3.0.19 and exception notification 3.0.0 do not play well together
Thanks, but no, it is for the wrong version of rails. This post has the solution to my problem: http://stackoverflow.com/questions/13042201/exception-notification-gem-raises-actionviewtemplateerror-code-converter-no On Wednesday, January 30, 2013 4:06:08 PM UTC-5, Colin Law wrote:> > On 30 January 2013 18:57, jsnark <s...-I/mPKdbEGRBWk0Htik3J/w@public.gmane.org <javascript:>> wrote: > > 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 %> > > Does this help [1]. Google found it very quickly. > > Colin > > [1] > http://stackoverflow.com/questions/13061836/getting-this-error-in-rails-actionviewtemplateerror-code-converter-not-fo >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/LI0NhQX5XfgJ. For more options, visit https://groups.google.com/groups/opt_out.