thanks for reading. Since hours, I am facing a problem and it seems
that I am not able to solve it.
Let’s say, I’ve got a model called “AnnotationType”. This model has
got a method called “foobar(x)”. It’s just so simple. I can access
this method in my unit tests, in the console (all modes), but if I
start the server in production mode and try to access this method from
within a view, it can just be found on the first request. Afterwards,
this method isn’t found anymore:
undefined method `foobar’ for #AnnotationType:0x7f7be4728870
method_missing' vendor/rails/activerecord/lib/active_record/associations/ association_proxy.rb:177:insend’
As you can see, my user interface renderer calls this method, but it
can’t be found. Of course, it is not the name of an association proxy.
This explains the above lines.
As I said, and yes, I swear: this method exists!
I am really thankful for any hint!