Resque-web: NoMethodError at / failed undefined method `to_yaml '

Resque-web is running, but when I try to view failed jobs, I get the following error:

NoMethodError at /failed
undefined method `to_yaml' for 3:Fixnum

The stack trace points to a call, ' to_yaml' as mentioned in the error, it looks like scque-web is missing the required one. Has anyone else had this problem or did you know how to solve it?

Note. I run this locally in an application with rails 4.

+3
source share
1 answer

You can see the reason here: https://github.com/resque/resque/issues/1143 - it comes down to a temporary error that is fixed but not yet released. I fixed mine by adding

require 'yaml'

at the top of server.rb

, server.rb : /usr/local/lib/ruby/gems/ 2.0.0/gems/resque-1.25.1/lib/resque/server.rb

+1

All Articles