ambethia/recaptcha — Issue #58: flash[:recptcha_error] = nil causes some problems in views
Author: PavelTyk
Created: 2011-12-21 12:04:29+00:00
State: open

I have helper method, that iterates on flash this way: `flash.each { |key, msg| html << content_tag(:div, msg, :class => key) }`
The https://github.com/ambethia/recaptcha/blob/master/lib/recaptcha/verify.rb#L45 causes trouble in that case, because it adds key to flash hash. I suggest to `flash.delete(:recaptcha_error)` instead.