This post originated from an RSS feed registered with Ruby Buzz
by Jonathan Weiss.
Original Post: Debugging fun
Feed Title: BlogFish
Feed URL: http://blog.innerewut.de/feed/atom.xml
Feed Description: Weblog by Jonathan Weiss about Unix, BSD, security, Programming in Ruby, Ruby on Rails and Agile Development.
Our app ran fine in WEBrick on the local development boxes but we had strange errors on the production Mongrels:
NoMethodError: undefined method `find' for Cluster:Module
Locally it was also running fine with Mongrel. It took some time to find out that the mongrel_cluster gem_plugin that we use on the production boxes installs a global module named Cluster and that this module overshadowed our Rails model named Cluster. I already wrote the author about it and hopefully mongrel_cluster will use a separate namespace in the next release. Until then we manage the Mongrels ourselves. Maybe this will spare somebody a long debugging session...