Ok, I admit it... I'm stumped.
I've a master world record that has multiple has_many associations:
class World < ActiveRecord::Base
has_many :bishoprics
has_many :city_towns
has_many :kingdoms
has_many :fiefs
end
Each of the other classes (Bishopric, CityTown, Kingdom and Fief) has a
matching "belong_to :world" association.
Now, if I comment out the "has_many :fiefs" association, I can create a
new world. If I uncomment the association, then I run into the dreaded
ReverseAssociationRequired error message on the association "fiefs"
claiming it doesn't have the belong_to for world and it does:
class Fief < ActiveRecord::Base
belongs_to :world
...
end
I checked the pluralization of fief that the inspector returns (via the
console) and got the right answer (fiefs). So, why the error?
Any help is appreciatd.
Ryan Moats
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/activescaffold?hl=en.