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:
- copy this patch to yout activesupport folder (for me it was /vendor/bundler_gems/gems/active_support-2.3.4)
- run
patch p1 < 0001-ruby-1.9-friendly-secure_compare.patch
(where 0001-ruby-1.9-friendly-secure_compare.patch – name of this patch) - put ‘lib/active_support/message_verifier.rb’ when it ask you for filename to patch
Leave a comment