Skip to content

ruby 1.9.1/psych can not process yaml from devise #2013

mcr opened this Issue Aug 7, 2012 · 1 comment

2 participants

mcr commented Aug 7, 2012

Line 112 of devise-1.5.3/lib/devise/ calls to_yaml to return an appropriately formatted error message:
{ :error => i18n_message }.send(method)

Unfortunately, this bails at /usr/lib/ruby/1.9.1/psych/visitors/emitter.rb line 21, because it seems that psych does not
include a to_s on o.value. The error that one sees is:
wrong argument type Symbol (expected String)

and backtraces are hard to get because of the way the rescues have occurred.

I do not yet have a solution to this, but I wanted to record it somewhere. (I don't think devise is wrong here)

Plataformatec member

Ok, thanks for the report. If there is something we can do, please let us know.

@josevalim josevalim closed this Aug 13, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.