I’m using STI in a new application, and something is terribly wrong with
Right, so I have number of subclasses that inherit from one concrete
base class. Each sub class can possibly have associations via has_many,
or has_one. When I try to access a collection on the sub class(
subclass.items), I get 'undefined method ‘items’ for '. The
strange thing is, accessing these subclasses in script/console works
fine, and even works the first time I run the app in some cases. Once I
refresh the page I get this error though.
I’m totally at a loss here. Any help would be greatly appreciated!
Thanks in advance.