rails/rails — Issue #3945: Really weird issues happening randomly
Author: jerefrer
Created: 2011-12-12 15:04:56+00:00
State: open

It's been a while now that I sometimes get really weird errors when starting my local server (does not depend on the server, tried WEBRick and Unicorn).

[I explained everything in details in this StackOverflow post] (http://stackoverflow.com/questions/8432479/rails-3-1-really-weird-issues-happening-randomly)

In essence I get undefined method randomly on objects, but only after server startup.
Sometimes I can trick around by lauching a pry or a debugger just before the buggy line, call manually the failing method and notice that it's working (...), then exit the debugger and see everything is working just fine.
Sometimes I can't get around the error (as I am now) and nothing seems to do the trick.

I've been working with Rails for a while now and I never encountered such issue so I hope someone would find a solution ...

The project is Rails 3.1 with 1.8.7 on RVM.

A huge kiss to my future hero ;)