Iβve been stuck with this error for quite some time and am at a standstill.
I get this absolutely useless error
can't dup NilClass
This is the situation.
I have one class that is in a relationship with another. Let's say
class Parent end class Child < Parent unloadable :has_many :parents, :foreign_key => "child" end
Error on first access does not occur. This happens the second time they are accessed.
What exactly causes this error and is there a solution?
I referenced the following link , but this does not help
Update
I found this one
But he offers the same thing again. But I have a module in my library. This has nothing to do with the model.
source share