Jake Schmitt Jake Schmitt -5 years ago 265
Ruby Question

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

Resque-web is up and running but when trying to view the failed jobs I get the following error:

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

The stack trace points to a '
' call as mentioned in the error, it seems like resque-web is missing a requires. Has anyone else had this problem or know how to solve it?

Note: I'm running this locally on a rails 4 app.

Answer Source

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

require 'yaml'

at the top of the server.rb file

note that the server.rb file on my machine was located at: /usr/local/lib/ruby/gems/2.0.0/gems/resque-1.25.1/lib/resque/server.rb

your location may vary

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download