Hi everyone,
I'm trying to organize my sources, according to the new 1.2 specifications.
So, i've an Animal class, with some subclasses (Dog,Bird,Snake).
Animal is in /model, the others in /models/animals.
When i've to instantiate a Dog, doing something like Animals::Dog.new i've an exception:
The single-table inheritance mechanism failed to locate the subclass: 'Dog'. This error is raised because the column 'type' is reserved for storing the class in case of inheritance. (cut)
This occurs why Rails is going to write just "Dog" in the type column, and not "Animals::Dog", so in the next call to the object the operation fails.
I'm doing something messy or it's just an issue?
Thanks, alessio.