Displaying 1 result from an estimated 1 matches for "projectsatbranch".
Did you mean:
projectsatbranches
2006 Feb 21
7
has_many :through failing to save changes
Hi all,
I''m messing around with has_many, and has_many :through (on edge rails),
using a join model. Branches and Projects join through ProjectsAtBranches.
If I do @branch.projects, I can see the associated projects, and
visa-versa, if I manually put them in the join table.
But I cannot do @branch.projects << Branch.find(blah), or
@branch.projects.clear, and then save the results. It works fine in
@branch, until I try to save it, and the...