heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
23.94k stars 5.54k forks source link

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

Closed mcr closed 12 years ago

mcr commented 12 years ago

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)

josevalim commented 12 years ago

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