ActionView::TemplateError (undefined method `^’ for “7”:String)

I got this error in view, in line below
if flash[:notice]

current rails version – 2.3.4 (active_support – 2.3.4)

after some googling I found such patch
to apply it:

  1. copy this patch to yout activesupport folder (for me it was /vendor/bundler_gems/gems/active_support-2.3.4)
  2. run patch p1 < 0001-ruby-1.9-friendly-secure_compare.patch (where 0001-ruby-1.9-friendly-secure_compare.patch – name of this patch)
  3. put ‘lib/active_support/message_verifier.rb’ when it ask you for filename to patch

No Responses to “ActionView::TemplateError (undefined method `^’ for “7”:String)”

Leave a comment