search for: projects_at_branch

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

Did you mean: projects_at_branches
2006 Feb 21
7
has_many :through failing to save changes
...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 child rows never save or alter. @branch.reload brings me back to step 1. class Branch < ActiveRecord::Base has_many :projects, :through => :projects_at_branches, :dependent => true has_many :projects_at_branches, :dependent => true end class Project < ActiveRecord::Base has_many :branches, :through => :projects_at_branches, :dependent => true has_many :projects_at_branches, :dependent => true end class ProjectsAtBranch < ActiveR...