Displaying 1 result from an estimated 1 matches for "project_members".
2006 May 11
1
ActiveRecord collection_select and has_and_belongs_to_many
...d everything I read on the net doesn''t seem to help. I was hoping
someone here might have had the same problem and be able to point me in the
right direction.
Database Schema:
table employees
id
name
table projects
id
name
table project_roles
id
name
table project_members
id
employee_id
project_id
role_id
I then have the following ActiveRecord objects:
class Employee < ActiveRecord::Base
has_and_belongs_to_many :project_members, :join_table =>
"project_members", :class_name => "ProjectMember"
end
class Project <...