search for: polymorphicerror

Displaying 1 result from an estimated 1 matches for "polymorphicerror".

2008 Sep 26
0
self-referential tags, has_many_polymorphs
...m/fauna/has_many_polymorphs/tree/master. After installing this plugin, and generating a tagging framework using the builtin script/generator tagging ModelA ModelB Tag --self-referential command, I am unable to use the tags, and instead receive the following error ActiveRecord::Associations::PolymorphicError: You can''t have a self-referential polymorphic has_many :through without renaming the non-polymorphic foreign key in the join model. Does anyone have an example of self-referential tagging working with this plugin, or can someone recommend a better way to achieve taggable tags? Thank...